Oliver Davies

Freelance Drupal Developer

SSH

How to use Authorized Keys to Create a Passwordless SSH Connection

01/02/2012 -- Oliver Davies

Rather than have to search through Google whenever I need to find the original article, I thought that I'd post it here for my own reference.

local$ ssh-keygen -t dsa
local$ scp ~/.ssh/id_dsa.pub remote:~/
local$ ssh username@remote
remote$ cat ~/id_dsa.pub >> ~/.ssh/authorized_keys
remote$ chmod 644 ~/.ssh/authorized_keys
Tags: 
Subscribe to RSS - SSH