Files
maps-saas/scratch/ssh_server2.sh
T

14 lines
220 B
Bash
Executable File

#!/bin/bash
CMD="$@"
expect -c "
set timeout 60
spawn ssh -o StrictHostKeyChecking=no root@194.163.173.157 \"$CMD\"
expect {
\"*password:*\" {
send \"mehmetDev@2101\r\"
exp_continue
}
eof
}
"