Skip to content
This repository has been archived by the owner on Apr 11, 2019. It is now read-only.

Ssh keys

norrs edited this page Dec 4, 2011 · 2 revisions

SSH Keys

linux

ssh-keygen

<enter> all the way

windows

puttygen.exe from "PuTTY":http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html can import existing keys and export OpenSSH keys export your key to C:\Users<username>.ssh

if you don't have a .ssh folder and can't create it in explorer due to windowns, run cmd.exe and run 'md C:\Users<username>.ssh'

handy stuff

passwordless logins

add your key to the server's .ssh/authorized_keys file

bash one-liner (or use ssh-copy-id):

cat .ssh/id_rsa.pub | ssh <username>@<hostname> 'cat >> .ssh/authorized_keys'

I can now login to servers without typing a password, works great with autossh! (apt-get install autossh)

Clone this wiki locally