Never been to TextSnippets before?

Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world (or not, you can keep them private!)

About this user

Dean Allen http://textdrive.com

« Newer Snippets
Older Snippets »
1 total  XML / RSS feed 

Generate secure ssh keys

Here's how to get to a quick secure shell login. On your computer (replace all values in CAPS of course):

cd ~
ssh-keygen -t dsa


(just hit return at any prompts, even if it asks for a password). Then:

scp ~/.ssh/id_dsa.pub YOURUSER@YOURSERVER.textdrive.com:~/.ssh/authorized_keys


And put in the password for your account when prompted. Next, add the following to ~/.ssh/config:

Host SOMESHORTCUT
Port 22
User YOURUSER
Hostname YOURSERVER.textdrive.com
KeepAlive yes                                                                   


Restart the local shell, and then whenever you want to login to your server, just type:

ssh SOMESHORTCUT


...and you'll zip right in.
« Newer Snippets
Older Snippets »
1 total  XML / RSS feed