January 2017

Copy key to remote host

2017-01-23T11:23:22+00:00 January 22nd, 2017|Linux, Security, Ubuntu|

Copy key to remote host

scp filelocation_name root@"/root/mykeys/"

copy key to remote host with .pem key

scp -i yourkey.pem filelocation_name root@"/root/mykeys/"

How to add public key to remote host

2017-01-23T11:37:21+00:00 January 19th, 2017|Linux, Security, Ubuntu|

copy public key

cat keyname_pub.key | ssh user@host ‘cat >> ~/.ssh/authorized_keys’

on local machine edit /home/username/.ssh/config and add

Host choose_short_name
Port 22
User remote_user
IdentityFile /home/username/username_ssh_priv.key

Load More Posts