#!/usr/bin/expect spawn ssh u[email protected] expect "assword:" send "mypassword\r" interact
References
https://stackoverflow.com/questions/16928004/how-to-enter-ssh-password-using-bash
Daily Notes of a Programmer
#!/usr/bin/expect spawn ssh u[email protected] expect "assword:" send "mypassword\r" interact
References
https://stackoverflow.com/questions/16928004/how-to-enter-ssh-password-using-bash