Enable Public Key Authentication on SSH

From Tech-Wiki
Revision as of 20:06, 24 October 2017 by Fabricio.Lima (Talk | contribs) (Created page with "Category:Linux In order to SSH to other systems without authentication, you must enable this feature on the server on /etc/ssh/sshd_config PubkeyAuthentication yes In a...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


In order to SSH to other systems without authentication, you must enable this feature on the server on /etc/ssh/sshd_config

PubkeyAuthentication yes

In addition, generate you public/private key par on the client

client# ssh-keygen

Now copy the public key to the server using:

client# scp ~/.ssh/id_rsa.pub user@server:/home/user/.ssh/authorized_keys

The command below also automates this process above

client# ssh-copy-id user@server