1.) On the client (the computer that wants to do the login into another computer) go to
Check if there's is already a id_rsa.pub file
If that file does not exist, create a public and private key by running this command:
2.) Copy the public key to the "remote" computer where you want to login:
Code:
ssh-copy-id -i .ssh/id_dsa.pub user@server
user@server is the user on the remote computer where you want to login and server is the address or domain name of it
3.) After successfully copying it with ssh-copy-id, you can just ssh to that remote computer:
and you won't be prompted again.
And with rsync you'd just do:
Code:
rsync -[OPTIONS] -e "ssh" /path/to/local/directory user@server:/path/to/remote/directory
Recent comments
22 hours 37 min ago
1 day 8 hours ago
1 day 8 hours ago
1 day 12 hours ago
1 day 16 hours ago
1 day 17 hours ago
1 day 19 hours ago
2 days 5 hours ago
2 days 10 hours ago
2 days 11 hours ago