Enable Public Key Authentication on SSH

From Tech-Wiki
Revision as of 21:07, 24 October 2017 by Fabricio.Lima (Talk | contribs)

(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:~/.ssh/authorized_keys

The command below also automates this process above

client# ssh-copy-id user@server