Hello all,
I have a Redhat Linux 6.0 system w/ssh-1.2.26 on one system (called
'sec') and Redhat Linux 5.2 w/ssh-1.2.26 on another system (called
'pri') connected via ethernet.
I am trying to create an ssh tunnel that I can use to mount a remote
tape device on pri and do backups from sec to pri. I do not even know if
this can be done, but I am trying.
Part of what I need to do is keep my authentication keys in memeory with
ssh-agent and ssh-add.
However, I am having a problem with ssh-add and/or ssh-agent.
When I execute ssh-agent $shell, I get:
[root@sec ssh-1.2.26]# ssh-agent $shell
SSH_AUTH_SOCK=/tmp/ssh-root/agent-socket-358; export SSH_AUTH_SOCK;
SSH_AGENT_PID=359; export SSH_AGENT_PID;
echo Agent pid 359;
I see ssh-agent in my running processes :
root 359 0.0 0.1 1468 520 ? S 12:40 0:00 ssh-agent
and I get an entry in /tmp/ssh-root:
srwx------ 1 root root 0 Oct 30 12:40 agent-socket-358
Now if I execute ssh-add, I get:
[root@sec ssh-1.2.26]# ssh-add
Need passphrase for /root/.ssh/identity ([EMAIL PROTECTED]).
Enter passphrase:
Could not open a connection to your authentication agent.
(I did put the correct passpharse in)
BTW, I do not know if this has anything to do with it, but if I execute
the ssh-agent -k command (with ssh-agent still in my processes), I get:
[root@sec .ssh]# ssh-agent -k
No SSH_AGENT_PID environment variable found
Does anyone know why the ssh-agent/ssh-add pair are not working?
Thank you in advance,
M