Auto send password
Moderator: General Moderators
- shiznatix
- DevNet Master
- Posts: 2745
- Joined: Tue Dec 28, 2004 5:57 pm
- Location: Tallinn, Estonia
- Contact:
Auto send password
I have a bash script that I run to rsync my dev server with my live server. It works very well and I am super happy with it. The only problem is that since it is using ssh to send the files I have to type in my password twice for the 2 folders that I sync and its a long password that is easy to mess up. So what I want to be able to do is have my bash script send the password automatically whenever it is asked for it instead of having me type it in. Is there any way to do this?
-
jeffery
- Forum Contributor
- Posts: 105
- Joined: Mon Apr 03, 2006 3:13 am
- Location: Melbourne, Australia
- Contact:
I would use SSH keys instead: http://www.sshkeychain.org/mirrors/SSH-with-Keys-HOWTO/