View Full Version : SSH Configuration question

Apr 9, 2008, 02:19 AM
Hi all,

So every time I google around for SSH tutorials, they always start from ground one... run ssh-keygen to generate the private / public key pair, etc etc.

However, I already have my public key on the remote system and I have the private key file on my current system. How do I "import" this key so that it loads by default.

When I boot up my mac and go into terminal, when I run
ssh-add -l
it says
The agent has no identities.

So I need to run ssh-add my_private_key and then if I run ssh-add -l, it lists my identity - how do I configure my system to load this key up by default?? Thanks!

Apr 9, 2008, 11:47 PM
You can modify the file .bash_profile located in your home directory and add the line

ssh-add my_private_key

at the end of the file. This will import the private key as soon as you open a terminal window.

Apr 10, 2008, 09:48 AM
Perhaps this could help?


Apr 10, 2008, 10:10 AM
Have you tried putting your private key in a file called id_dsa in your .ssh directory?

b e n