22 lines
447 B
Bash
Executable File
22 lines
447 B
Bash
Executable File
#!/usr/bin/expect -f
|
|
set timeout -1
|
|
set jump_host "wooo@192.168.0.110"
|
|
set target_host "ollama@192.168.0.188"
|
|
|
|
spawn ssh -J $jump_host $target_host "cd /home/ollama && git clone http://192.168.0.110:3001/wooo/agent-bounty-protocol.git || true"
|
|
expect {
|
|
"*assword:*" {
|
|
send "0936223270\r"
|
|
exp_continue
|
|
}
|
|
"*sername for*" {
|
|
send "wooo\r"
|
|
exp_continue
|
|
}
|
|
"*assword for*" {
|
|
send "0936223270\r"
|
|
exp_continue
|
|
}
|
|
eof
|
|
}
|