[CentOS] scp and key login

Wed Oct 1 15:01:23 UTC 2008
Tony Schreiner <schreian at bc.edu>

On Oct 1, 2008, at 9:31 AM, Kai Schaetzl wrote:

> Bent Terp wrote on Wed, 1 Oct 2008 13:53:44 +0200:
>
>> Short version:
>
> Thanks for that! I seem to be doing something wrong.
>
> chacha:~ ssh-agent
> SSH_AUTH_SOCK=/tmp/ssh-pqqvN24337/agent.24337; export SSH_AUTH_SOCK;
> SSH_AGENT_PID=24338; export SSH_AGENT_PID;
> echo Agent pid 24338;
> chacha:~ ssh-add
> Could not open a connection to your authentication agent.
> chacha:~ ssh-agent -k
> SSH_AGENT_PID not set, cannot kill agent
>
>
> Kai
>
> --  
> Kai Schätzl, Berlin, Germany
> Get your web at Conactive Internet Services: http://www.conactive.com
>

You need to either:

select and paste (to execute) the first two lines generated by the  
ssh-agent command

or run

ssh-agent $SHELL

which will not need the above step, but will start another shell, so  
you will need to exit twice to logout.

If you are running GNOME, there is also the gnome-ssh-askpass

Tony Schreiner