ssh-keygen configuration problem


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users ssh-keygen configuration problem
# 8  
Old 12-03-2008
Quote:
Originally Posted by brandedfundoo
any one with any suggestion ?????????
Well, you said "in other server it's working fine". So you have one server where it works and one server wher it fails. So compare the two servers and find the difference.
# 9  
Old 12-03-2008
Well .. that is what i have kept as the last option .. but my this server is the production server .. so cant risk the security ... was trying to get the barely essential parameters set in /etc/ssh/sshd_config so that security is not threatened at all .. now i guess will have to do hit and trial... Smilie


Thanks Smilie
# 10  
Old 12-03-2008
brandedfundoo,

Perderabo is correct please set permission to 700. Set the permission to /home/<the user your trying to passwdless login> at remote server . I encountered this weird scenario before and setting up the /home/<username> to 700 really helps.
# 11  
Old 12-04-2008
i have already kept my ssh directory with 700 permissions...

Now problem has become more weird ....
The server got a hard reboot and bingo !! everything started working fine..
i do not know the reason as all the entries in /etc/ssh/sshd_config are commented.. but it's working fine now... kinda strange it is... am trying to trace but no luck so far ..
# 12  
Old 12-04-2008
The only parameters uncommented are

X11Forwarding yes
Subsystem sftp /usr/sbin/sftp-server

I forgot mentioning that i got user's default shell changed to ksh from bsh(bean shell) few days before and this one the first hard boot of the server after that ... Could it make difference ..?

Can any one suggest anything in this regard ...?
# 13  
Old 12-04-2008
Well, after the show we are left to guessing, but at least your problem is solved - for now. Problems, even when they do not hit, tend to come back if the solution is not understood.

1. It might have been that the daemon process (sshd) was not running. Obviously it gets started automatically at system boot time, so the problem is gone.

2. Maybe it was running, but started under a users ID instead of root, so that another user could not access its services. In this case too you have no problem any more.

3. Maybe it was started correctly but - for an unknown reason - aborted. You should find residues of this happening in the error log (issue "errpt" and "errpt -a" respectively) and you should find out what condition was causing it, it might come back.

Perhaps there are a lot of other possible reasons, you might want to consider.

I hope this helps.

bakunin
# 14  
Old 12-05-2008
hmm... actually we login into the server through ssh only .. so ssh surely didnot get aborted.. everything was working fine except it was asking for password everytime ..

i m still keeping trace on things .. how they come out to be ..

Yes you are right.. problems tend to come back when the solution is not understood ..

wish me luck.. Smilie .. there must be some logical reason behind this kinda behaviour and i will have to find that ..
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Ssh-keygen problems

For some reason, when I try copying my public key to the server, despite it showing as being successful: rob@linux044:~$ ssh-copy-id -i /home/rob/Work/Keys/keys.txt.pub !@#$%.com /usr/bin/ssh-copy-id: INFO: Source of key(s) to be installed: "/home/rob/Work/Keys/keys.txt.pub"... (7 Replies)
Discussion started by: Circuits
7 Replies

2. AIX

ssh-keygen issue on AIX

Hi , I am trying to create public key on my AIX server on other than home directory.However the command does not ask for Enter file in which to save the key : It is directly taking me to Enter the passphrase. I don't want to save the key in home dir as that is the home dir for other userID... (6 Replies)
Discussion started by: saurau
6 Replies

3. Shell Programming and Scripting

sftp ssh-keygen

sftp username@host <<EOF lcd /home/dirA cd /home/dirB mput *.txt exit EOF Hi, i have done the keygen-ssh settings but rite now I log through putty I enter my credentials and then when i successfully log in, then I issue the command ssh server name then I again enter into the server but... (1 Reply)
Discussion started by: rahulsxn660
1 Replies

4. UNIX for Dummies Questions & Answers

ssh-keygen error

Hi, I using ssh-keygen for passwordless authenciation firstly and I am following these steps mentioned below... 1) Login to pngpcdb1 using your user/pass 2) type 'bash' (without quotes) 3) ssh-keygen #generates private and public key. 4) copy this private key to the location of your sftp... (1 Reply)
Discussion started by: karan2597
1 Replies

5. UNIX for Dummies Questions & Answers

keygen-ssh

Hi, I was going thruough the password less authentication of keygen-ssh that will help us in generating keys...One thing that is not clear to me that if in nearby future we conncet to remote ftp server in that case now we need to only provide the user id itself that is password would not be... (1 Reply)
Discussion started by: rahul125
1 Replies

6. UNIX for Dummies Questions & Answers

ssh-keygen

Hi, I am new to unix, recently i was exploring password less remote connection to the ftp server and in that I was exploring the ssh-keygen utility, that it generates private & public keys that helps in transmitting files in encrypted format.Could you please explain me in detail about the... (1 Reply)
Discussion started by: rahul125
1 Replies

7. Shell Programming and Scripting

Query regarding ssh keygen

Hi, I have two Unix servers A and B. I have a script in server A. I want to connect to server B from A using ssh only and without giving passwords everytime i connect. I went through other posts regarding this and I generated a public key in server A and copied that in server B. Now when I... (3 Replies)
Discussion started by: mick_000
3 Replies

8. Shell Programming and Scripting

SSH-Keygen script

Hello friends, I wanna to make new script which work as i defined below (1) it connect (using ssh) to remote server (2) remote server having passphrase key with password (3) Generate new passphrase on local machine with random 8 character password. (4) It will atomatically uploaded to... (4 Replies)
Discussion started by: jagnikam
4 Replies

9. UNIX for Advanced & Expert Users

ssh-keygen questions (not working)

I have created the keys and placed the public key in the remote user directory (not the server root). (remote machine: dwebapp1) ex: /home/webarch/user_name/.ssh/authorized_keys2 cannot ssh into the remote machine using the following command: ssh ${dwebapp1} the manned description gives... (10 Replies)
Discussion started by: tekline
10 Replies

10. SuSE

ssh-keygen trust problem

OK, this is the problem. I have 2 machines TestA ( Suse 9.0 ) TestB ( Mandrake 10 ) and one of our guys wants to scp from TestA to TestB without the password prompt appearing. Sounds simple so far.... Ok, I haven't used ssh-keygen before, so I create identical logins to test what I'm doing...... (4 Replies)
Discussion started by: PaulC
4 Replies
Login or Register to Ask a Question