Changes between Version 2 and Version 3 of SSHKEYGEN
- Timestamp:
- 05/26/21 02:40:37 (4 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
SSHKEYGEN
v2 v3 2 2 3 3 4 1. Create ssh key at localhost 4 1.Create ssh key at localhost [[br]] 5 5 6 {{{ 6 7 ssh-keygen -t rsa -b 4096 -C user@remotehost.com 7 8 }}} 9 8 10 Then they will ask to enter default .ssh path 9 11 {{{ 10 12 Enter file in which to save the key (/home/yourusername/.ssh/id_rsa): 11 13 }}} 14 12 15 We can key in any passphrase to make extra security but just press enter with empty key it will automate gen-key for you 13 16 {{{ 14 17 Enter passphrase (empty for no passphrase): 15 18 }}} 19 16 20 Now the public and private key will be kept in 17 21 {{{ … … 21 25 22 26 2. In your local host copy public key (id_rsa.pub) to remote host 27 23 28 {{{ 24 29 ssh-copy-id remote_username@server_ip_address