Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
05-05-2006, 01:29 PM
|
#1
|
Member
Registered: Mar 2004
Distribution: FC5,Slackware
Posts: 53
Rep:
|
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.
|
|
|
05-05-2006, 04:14 PM
|
#2
|
LQ 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:
|
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 04:15 PM.
|
|
1 members found this post helpful.
|
05-06-2006, 10:03 AM
|
#3
|
Member
Registered: Mar 2004
Distribution: FC5,Slackware
Posts: 53
Original Poster
Rep:
|
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.
|
|
|
05-06-2006, 02:30 PM
|
#4
|
Member
Registered: Mar 2004
Distribution: FC5,Slackware
Posts: 53
Original Poster
Rep:
|
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.
__________________
|
|
|
05-07-2006, 10:04 AM
|
#5
|
LQ 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:
|
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
|
|
|
05-07-2006, 02:29 PM
|
#6
|
Member
Registered: Mar 2004
Distribution: FC5,Slackware
Posts: 53
Original Poster
Rep:
|
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.
|
|
|
05-07-2006, 03:47 PM
|
#7
|
LQ 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:
|
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
|
|
|
All times are GMT -5. The time now is 10:53 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|