Show pageOld revisionsBacklinksBack to top This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong. ====== Configure Key-based Authentication For SSH ====== **General Information** SSH public/private key authentication for password-less logins. ---- ===== On Server1 ===== Generate public/private key pair (press 'enter' when prompted to enter a passphrase to keep empty) <code bash> ssh-keygen </code> * By default, uses type "rsa" * Private key in /home/<user>/.ssh/id_rsa * Public key in /home/<user>/.ssh/id_rsa.pub \\ Copy from server1 to destination server2 <code bash> ssh-copy-id user@192.168.1.151 </code> \\ Execute Command on remote system (or simply ssh login normally) <code bash> ssh user@192.168.1.151 "ls -la" </code> ---- linux_wiki/configure_key-based_authentication_for_ssh.txt Last modified: 2019/05/25 23:50(external edit)