feat: add automated SSH expect script and update docker-compose configuration
This commit is contained in:
Executable
+13
@@ -0,0 +1,13 @@
|
||||
#!/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
|
||||
}
|
||||
"
|
||||
Reference in New Issue
Block a user