Linux: Difference between revisions

Jump to navigation Jump to search
289 bytes added ,  2 April 2018
put list of commands in a table
→‎Disk: Group under LVM
put list of commands in a table
Line 3: Line 3:
= SSH =
= SSH =


== Push public SSH key to a server ==
{| class="wikitable" border="1" style="border-collapse:collapse"
 
! style="text-align: center;"| Description
<source lang="bash">
! Command
$ ssh-copy-id -p 41111 -i ~/.ssh/id_rsa.pub mhan@remote.server.com
|-
</source>
| 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>
|-
| Push public SSH key to a server
| <code>ssh-copy-id -p 41111 -i ~/.ssh/id_rsa.pub mhan@remote.server.com</code>
|}


= Disk =
= Disk =

Navigation menu