Level 2 Linux lab 19 question

Hi!

So in this lab I need to send the backup to another server, which is the backup server, in order to do so I need to create script to do it, the script should work without asking password of the ssh authentication.

Since it seems scp can’t do that by alone, and the servers have sftp by default, I checked to do it with sftp, but for that I need to know where are the rsa keys of the backup server so I can send them with sftp in the script without asking for password when the script has been launched.

I’m seeing this right or there is another way to send the backup file ? Where are the rsa keys of each user ? It seems that are not in the ~/.ssh folder :frowning_face:

Hi @carlos140

I think you need ssh-keygen to generate ssh keys and ssh-copy-id to copy the keys to the remote. Finally, write the script to archive and scp to copy to the remote server.

1 Like

Yes, you need to set up a new SSH key on App Server 1. Then, copy the public key and add it to the Nautilus Backup Server. This will allow App Server 1 to use SCP to connect to the backup server without a password.

1 Like

Thanks @Santosh_KodeKloud & @raymond.baoly ! I made the lab today :slight_smile:

1 Like