- Feb 7, 2001
- 1,637
- 0
- 0
I need to have a cronjob for our BSD server that backs up some files.
Basically what I want it to do is copy some folders, tar everything up, then FTP it to our offsite backup machine. The copying and tarring works fine, so now I just need it to FTP.
I can connect to the remote machine, but how can I have the shell script login non-interactivly ( ie make the shell script login on its own, so that it doesn't prompt for username/password and all )
The only information I can' find on this involves something with trading public SSH keys or something... not sure I entirely understand that, but if anyone would walk me through either making a shell script that logs in to an SFTP server and does something, or how to set up the SSH keys so that the user doesn't need to provide a password but is still secure and logged in...
I'd much appreciate any help! Thanks!
Basically what I want it to do is copy some folders, tar everything up, then FTP it to our offsite backup machine. The copying and tarring works fine, so now I just need it to FTP.
I can connect to the remote machine, but how can I have the shell script login non-interactivly ( ie make the shell script login on its own, so that it doesn't prompt for username/password and all )
The only information I can' find on this involves something with trading public SSH keys or something... not sure I entirely understand that, but if anyone would walk me through either making a shell script that logs in to an SFTP server and does something, or how to set up the SSH keys so that the user doesn't need to provide a password but is still secure and logged in...
I'd much appreciate any help! Thanks!