First of all, shellcheck.
Second of all, those quotes actually unquote the variable:
|
"$ESCALATION_TOOL" -S sed -i 's/^#PasswordAuthentication yes/PasswordAuthentication no/' /etc/ssh/sshd_config && |
|
"$ESCALATION_TOOL" -S sed -i 's/^PasswordAuthentication yes/PasswordAuthentication no/' /etc/ssh/sshd_config && |
|
"$ESCALATION_TOOL" -S sed -i 's/^#PubkeyAuthentication no/PubkeyAuthentication yes/' /etc/ssh/sshd_config && |
|
"$ESCALATION_TOOL" -S sed -i 's/^PubkeyAuthentication no/PubkeyAuthentication yes/' /etc/ssh/sshd_config && |
|
"$ESCALATION_TOOL" -S systemctl restart sshd |
Third of all,
$ESCALATION_TOOL in this case is being expanded on the client side...
The list goes on. We need someone to refactor that whole script.
First of all, shellcheck.
Second of all, those quotes actually unquote the variable:
linutil/core/tabs/utils/ssh.sh
Lines 65 to 69 in d91a44e
Third of all,
$ESCALATION_TOOLin this case is being expanded on the client side...The list goes on. We need someone to refactor that whole script.