» Knowledgebase - If its not here, Just ask.

Virtual Dedicated Servers

ID #1110

HOWTO: set up ssh keys

1. ssh-keygen -t dsa

This will prompt you for a secret passphrase. If this is your primary identity key, make sure to use a good passphrase. If this works right you will get two files called id_dsa and id_dsa.pub in your .ssh dir. Note: it is possible to just press the enter key when prompted for a passphrase, which will make a key with no passphrase. This is a Bad Idea ™ for an identity key, so don't do it! See below for uses of keys without passphrases.



2. scp ~/.ssh/id_dsa.pub HOST/IP/CHANGEME:.ssh/authorized_keys2

Copy the id_dsa.pub file to the other host's .ssh dir with the name authorized_keys2.


3. ssh-agent sh -c 'ssh-add < /dev/null && bash'

4. SSH HOST/IP

Tags: -

Related entries: -

Last update: 2008-12-24 16:36
Author: Support TEAM
Revision: 1.2

Digg it! Print this record Send to a friend Show this as PDF file
Propose a translation for Propose a translation for
Please rate this entry:

Average rating: 0 out of 5 (0 Votes )

completely useless 1 2 3 4 5 most valuable

You cannot comment on this entry