I have 2 linux red hat servers, one with important stuff and one that's backup, every night 00.05 the backup server takes a ncftpget connection to the other server and backup the important files to that server (then backup server makes also a backup on tape)
Now I would like to increase the security by using (client) SFTP (ssh protocol)instead ncftpget (ftp protocol)
So I'm wondering if anyone can help me out with the script?
I specificly want to know how to make a script that does it automaticly (with cron) I know the connect & get files commands, but I don't know how to make sftp send password when connecting, so the server won't prompt it.
anyone?
Now I would like to increase the security by using (client) SFTP (ssh protocol)instead ncftpget (ftp protocol)
So I'm wondering if anyone can help me out with the script?
I specificly want to know how to make a script that does it automaticly (with cron) I know the connect & get files commands, but I don't know how to make sftp send password when connecting, so the server won't prompt it.
anyone?