Linux: Difference between revisions

From Han Wiki
Jump to navigation Jump to search
Push public SSH key to a server
 
file . permissions
Line 6: Line 6:
$ ssh-copy-id -p 41111 -i ~/.ssh/id_rsa.pub mhan@remote.server.com
$ ssh-copy-id -p 41111 -i ~/.ssh/id_rsa.pub mhan@remote.server.com
</source>
</source>
= File =
== Permissions ==
r = 4
w = 2
x = 1
rw = 6
r-x = 5
rwx = 7

Revision as of 10:28, 2 April 2018

SSH

Push public SSH key to a server

$ ssh-copy-id -p 41111 -i ~/.ssh/id_rsa.pub mhan@remote.server.com

File

Permissions

r = 4 w = 2 x = 1

rw = 6 r-x = 5 rwx = 7