do not ask for permission

This commit is contained in:
goldsquid
2025-11-15 10:31:08 +07:00
parent 00462e4e98
commit d93cc9e180

View File

@@ -22,6 +22,7 @@ declare -a USED_PORTS=()
setup_ssh_multiplex() {
echo "Setting up SSH control connection..."
ssh -nNf -o ControlMaster=yes \
-o StrictHostKeyChecking=no \
-o ControlPath=/tmp/ssh-mux-%h-%p-%r \
-o ControlPersist=600 \
-o Compression=no \
@@ -29,10 +30,10 @@ setup_ssh_multiplex() {
if [[ $? -eq 0 ]]; then
echo "SSH control connection established"
export SSH_CMD="ssh -o ControlPath=/tmp/ssh-mux-%h-%p-%r"
export SSH_CMD="ssh -o StrictHostKeyChecking=no -o ControlPath=/tmp/ssh-mux-%h-%p-%r"
else
echo "Failed to setup SSH multiplexing, using direct SSH"
export SSH_CMD="ssh"
export SSH_CMD="ssh -o StrictHostKeyChecking=no"
fi
}