expect scripts for automated login with ssh connection.
#!/usr/bin/expect
set timeout 60
set PASS xxxxx
spawn /usr/bin/ssh root@ns2
expect “Password: “; send “$PASS\r”
interact
expect scripts for automated login with ssh connection.
#!/usr/bin/expect
set timeout 60
set PASS xxxxx
spawn /usr/bin/ssh root@ns2
expect “Password: “; send “$PASS\r”
interact