How do I set up SSH so I don't have to type my password?
I'm trying to write a shell script to connect my MBP to my server (for tunneling) every-time it boots. I'm having problem with the password prompt, can you advise?
I found this script online (modified), but spawn and send don't seem to exist?
echo "Logging in and creating local proxy" spawn ssh -2 -R 7654:localhost:7654 -A -D 1080 email@example.com match_max 100000 # Look for password prompt expect "*?assword:*" # Send password send -- "PASSWORD\r" # send blank line (\r) to make sure we get back to gui send -- "\r" expect eof echo "All done"
Anyone else know how to do this properly?