linux_wiki:configure_key-based_authentication_for_ssh

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

linux_wiki:configure_key-based_authentication_for_ssh [2016/03/05 17:11]
billdozor
linux_wiki:configure_key-based_authentication_for_ssh [2019/05/25 23:50]
Line 1: Line 1:
-====== Configure Key-based Authentication For SSH ====== 
- 
-**General Information** 
- 
-SSH public/private key authentication for password-less logins.  
- 
----- 
- 
-===== On Server1 ===== 
- 
-Generate public/private key pair 
-<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)