LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices



Reply
 
Search this Thread
Old 05-05-2006, 02:29 PM   #1
FerkoPica
Member
 
Registered: Mar 2004
Distribution: FC5,Slackware
Posts: 53

Rep: Reputation: 15
SSH problem - ssh-add not respond


Hi, could somebody help me, please...

on my slackware machine when i run out next 2 commands,

1.
root@intel333:~$ ssh-agent /bin/bash -everything looks ok

2.
root@intel333:~$ ssh-add -l
The agent has no identities. <<<<< problem is that ssh-add stop responding in that moment, even if a identity is added or if ssh-add command is executed before, it shows only error below:

root@intel333:~$ ssh-add
Could not open a connection to your authentication agent.


So ssh-agent must be executed at first and then ssh-add for adding key's, on my second fedora machine this proces works ok, so now i dont know where's the problem.
 
Old 05-05-2006, 05:14 PM   #2
Brian1
Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 61
Is this what you want to do to make it not ask for passphrase?

I do it as follows for rsa. Same for dsa just make the change.

exec ssh-agent /bin/bash
ssh-add ~/.ssh/id_rsa
enter passphrase

Brian1

Last edited by Brian1; 05-05-2006 at 05:15 PM.
 
1 members found this post helpful.
Old 05-06-2006, 11:03 AM   #3
FerkoPica
Member
 
Registered: Mar 2004
Distribution: FC5,Slackware
Posts: 53

Original Poster
Rep: Reputation: 15
I'm not sure because of this:

[vikes@amd64 ~]$ ssh intel333
vikes@intel333's password:
Last login: Sat May 6 02:48:18 2006 from amd64
Linux 2.4.31.
vikes@intel333:~$ ssh-agent /bin/bash
vikes@intel333:~$ man ssh-add <<<< after this command terminal stop responding, same in next case

vikes@intel333:~$ ssh-agent /bin/bash
vikes@intel333:~$ ssh-add --help <<<<< just blinking cursor on screen, and must login again.


Permissions of files are set to only owner can acces this file(identity, i'm using rsa1 for testing purposes) in ~/.ssh, and on seconfd machine this process works ok. My target is to authentificate from amd64(fedora) without password and passphrase on intel333(slack-server). I has read out book about SSH, but a still can solve this issue. Now i've got mixture in head, if you could provide me quick help i'll be thankful please.
 
Old 05-06-2006, 03:30 PM   #4
FerkoPica
Member
 
Registered: Mar 2004
Distribution: FC5,Slackware
Posts: 53

Original Poster
Rep: Reputation: 15
ssh problem

Quote:
Originally Posted by Brian1
Is this what you want to do to make it not ask for passphrase?

I do it as follows for rsa. Same for dsa just make the change.

exec ssh-agent /bin/bash
ssh-add ~/.ssh/id_rsa
enter passphrase

Brian1
I'm not sure because of this:

[vikes@amd64 ~]$ ssh intel333
vikes@intel333's password:
Last login: Sat May 6 02:48:18 2006 from amd64
Linux 2.4.31.
vikes@intel333:~$ ssh-agent /bin/bash
vikes@intel333:~$ man ssh-add <<<< after this command terminal stop responding, same in next case

vikes@intel333:~$ ssh-agent /bin/bash
vikes@intel333:~$ ssh-add --help <<<<< just blinking cursor on screen, and must login again.


Permissions of files are set to only owner can acces this file(identity, i'm using rsa1 for testing purposes) in ~/.ssh, and on seconfd machine this process works ok. My target is to authentificate from amd64(fedora) without password and passphrase on intel333(slack-server). I has read out book about SSH, but a still can solve this issue. Now i've got mixture in head, if you could provide me quick help i'll be thankful please.
__________________
 
Old 05-07-2006, 11:04 AM   #5
Brian1
Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 61
The above post is confusing me. Looks like you have logged into remote ssh server and then trying to run the sss-agent command there. You run the command on the local box before making the connection.

Check out this link of ssh setup. Great site. http://www.suso.org/docs/shell/ssh.sdf

Question: You have setup passphrase and the remote site is not asking for the passphrase? Just the password?
If so follow this from the above web site link.
Now when ssh to the remote machine, it should ask you for your key passphrase instead of your password. If it doesn't, it could be that the permissions and mode of the authorized_keys file and .ssh directory on the remote server need to be set more restrictively. You can do that with these commands on the remote server:

chmod 700 ~/.ssh
chmod 600 ~/.ssh/authorized_keys


Brian1
 
Old 05-07-2006, 03:29 PM   #6
FerkoPica
Member
 
Registered: Mar 2004
Distribution: FC5,Slackware
Posts: 53

Original Poster
Rep: Reputation: 15
Wink Thank you...ssh-problem

Thank you very much, ssh connection now works fine, as i wish, but the problem what i've described previously before is still reoccuring.

amd64 machine:

[vikes@amd64 .ssh]$ ssh-add -l
The agent has no identities.
[vikes@amd64 .ssh]$

slack machine:

vikes@intel333:~$ ssh-add -L
The agent has no identities.
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<cursor blinks, and terminal after this not responding

Altrough, thanx again, you helps me, its good that this forum exist, i like this linux world...

Cheers.
 
Old 05-07-2006, 04:47 PM   #7
Brian1
Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 61
Have followed the ssh-agent like it is described in the suso link?
If so then I have no idea. I am guessing something is missing. What I do not know.
How about installing the latest. Or going to apps site and see if there are any bugs.

Brian1
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ssh-agent, ssh-add and ssh-keygen AND CVS raylpc Linux - General 2 11-19-2008 03:50 AM
Passwordless SSH with SSH commercial server and open ssh cereal83 Linux - General 7 04-18-2006 01:34 PM
ssh problem after creating an ssh alias. porotothorpe Linux - General 2 01-25-2006 08:56 PM
ssh-agent/ssh-add question mega Slackware 2 01-26-2005 04:09 AM


All times are GMT -5. The time now is 01:09 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration