Changes between Version 8 and Version 9 of SSHKEYGEN


Ignore:
Timestamp:
05/26/21 02:45:15 (4 years ago)
Author:
krit
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • SSHKEYGEN

    v8 v9  
    22
    33
    4 * 1. Create ssh key at localhost [[br]]
     41. Create ssh key at localhost [[br]]
    55
    6 {{{
    7 ssh-keygen -t rsa -b 4096 -C user@remotehost.com
    8 }}}
     6 {{{
     7 ssh-keygen -t rsa -b 4096 -C user@remotehost.com
     8 }}}
    99
    1010 Then they will ask to enter default .ssh path
     
    2424}}}
    2525
    26 * 2. In your local host copy public key (id_rsa.pub) to remote host
     262. In your local host copy public key (id_rsa.pub) to remote host
    2727
    28 {{{
    29 ssh-copy-id remote_username@server_ip_address
    30 }}}
     28 {{{
     29 ssh-copy-id remote_username@server_ip_address
     30 }}}
    3131 or with manual ssh with
    32 {{{
    33 cat ~/.ssh/id_rsa.pub | ssh remote_username@server_ip_address "mkdir -p ~/.ssh && chmod 700 ~/.ssh && cat >> ~/.ssh/authorized_keys && chmod 600 ~/.ssh/authorized_keys"
    34 }}}
     32 {{{
     33 cat ~/.ssh/id_rsa.pub | ssh remote_username@server_ip_address "mkdir -p ~/.ssh && chmod 700 ~/.ssh && cat >> ~/.ssh/authorized_keys && chmod 600 ~/.ssh/authorized_keys"
     34 }}}
    3535
    3636* 3. Now you can ssh with out prompt for password