4,461
edits
add 50% to SSH section |
|||
Line 7: | Line 7: | ||
! Command | ! Command | ||
|- | |- | ||
| Create private/public SSH key file using 2048 bit encryption and with a comment. The command creates files under ~/.ssh folder. | | style="width: 50%;" | Create private/public SSH key file using 2048 bit encryption and with a comment. The command creates files under ~/.ssh folder. | ||
| <code>ssh-keygen -b 2048 -C user@host.domain</code> | | style="width: 50%;" | <code>ssh-keygen -b 2048 -C user@host.domain</code> | ||
|- | |- | ||
| Push public SSH key to a server | | style="width: 50%;" | Push public SSH key to a server | ||
| <code>ssh-copy-id -p 41111 -i ~/.ssh/id_rsa.pub mhan@remote.server.com</code> | | style="width: 50%;" | <code>ssh-copy-id -p 41111 -i ~/.ssh/id_rsa.pub mhan@remote.server.com</code> | ||
|} | |} | ||