Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Public Key Authentication

DZone's Guide to

Public Key Authentication

·
Free Resource
The 'key' here is the chmodding... OpenSSH requires proper permissions!

ssh-keygen -t rsa -b 2048

scp .ssh/id_rsa.pub user@remote.box:~
ssh user@remote.box
chmod 700 .ssh
cat id_rsa.pub >> .ssh/authorized_keys
chmod 600 .ssh/authorized_keys
rm id_rsa.pub
Topics:

Opinions expressed by DZone contributors are their own.

THE DZONE NEWSLETTER

Dev Resources & Solutions Straight to Your Inbox

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.

X

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}