Question

How can I add Linux SSH keys ?

By gabrielturqos ·
How can I add Linux SSH keys of the remote server to my local Linux box. The SSH server IP address is 192.168.2.3
3 total posts (Page 1 of 1)  
Thread display: Collapse - | Expand +

All Answers

Collapse -

Steps To Setup SSH Keys

by palakbisht011 In reply to How can I add Linux SSH k ...

1. create akey pair using ssh-keygen command.
2.Copy and install the public key using ssh-copy-id command.
3.Add yourself to sudo admin account.
4. Disable the password login for root account.

Collapse -

How can I add Linux SSH keys ?

by edizgeorgi In reply to How can I add Linux SSH k ...

Well. There are different ways to accomplish thet but you can use folowing command. ssh-copy-id root@192.168.2.3
(link removed by moderator)

Collapse -

My reply

by RonCloudGeek In reply to How can I add Linux SSH k ...

Run the keygen command on your remote server to generate the keys

ssh-keygen -t rsa

Then use this command to add the keys to your local server. Modify it to match your server name.

cat ~/.ssh/id_rsa.pub | ssh user@hostname 'cat >> .ssh/authorized_keys'

Regards,
Ron

Back to Linux Forum
3 total posts (Page 1 of 1)  

Related Discussions

Related Forums