LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (http://www.linuxquestions.org/questions/linux-networking-3/)
-   -   need help with no password ssh and ssh-agent (http://www.linuxquestions.org/questions/linux-networking-3/need-help-with-no-password-ssh-and-ssh-agent-526893/)

hedpe 02-08-2007 07:34 PM

need help with no password ssh and ssh-agent
 
Hey all,

I've looked at like 5 different guides for no password ssh and they all say the same thing... and I've done this over and over and can't get it.

First I create my id_dsa:
Code:

ssh-keygen -t dsa
Then I scp it over to the server machine, and append it to ~/.ssh/authorized_keys

Now when I try to ssh, it asks me for the passphrase for ~/.ssh/id_dsa and logs me in without ever asking me for the ssh password also.

Now I want it to not ask me for the id_dsa password... guides are telling me to use ssh-agent, however:
Code:

bash-2.05b$ ssh-agent /usr1/gnychis/.ssh/id_dsa
/usr1/gnychis/.ssh/id_dsa: Permission denied
bash-2.05b$ ls -la /usr1/gnychis/.ssh/ | grep id_dsa
-rw-------    1 gnychis  users        736 Feb  8 20:18 id_dsa
bash-2.05b$ whoami
gnychis

I can't figure this out, this is happening on *all* of my machines.

Any clues? I have root on the client machines, but not on the server machine.

Thanks!
George

Emerson 02-08-2007 08:19 PM

Has this ssh-agent SUID bit set?

hedpe 02-08-2007 08:39 PM

i have no clue what you mean, sorry... can you elaborate?

Emerson 02-08-2007 08:49 PM

SUID - set user ID
If this bit is set executable will not run with your user rights.

Edit: http://wiki.linuxquestions.org/wiki/Suid


All times are GMT -5. The time now is 05:05 PM.