Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations sizbut on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

problem with sshd!

Status
Not open for further replies.

haneo

Programmer
Jan 2, 2002
274
CA
I must resolve a problem in a remote PC "not mine" it's redhat 7.1 when i do the command:

[root@proxy tech]# /etc/rc.d/init.d/sshd start

i got this :
Generating SSH1 RSA host key: [FAILED]

and tail /var/log/message give:
nov 10 08:50:13 proxy sshd: RSA1 key generation failed

when i do:
[root@proxy tech]# ssh-keygen
Generating public/private rsa1 key pair.
Enter file in which to save the key (/root/.ssh/identity):
/root/.ssh/identity already exists.
Overwrite (y/n)? y

but this do not resolv the problem!!!
any help is welcom.
 
Check /etc/init.d/sshd. There will be something like 'RSA1_KEY=/etc/ssh/ssh_host_key'. This directory/file will probably be nonexistant or write protected (chmod or chattr).
 
If you are trying to connect to a remote system, you dodnot need to run the ssh daemon. The remote system must of course. If the key generated is incorrect, then remove everything in the /root/.ssh/ directory. Run ssh-keygen again to recreate the files.
Connecting to a remote location requires that their key resides on your system or the ssh configuration allows entry with a password. That option is controlled by the /etc/ssh/ssh-config file on the remote system. Also, if the remote system is running the ssh2 encryption, you will need to generate a key for the ssh1 encryption, which you appear to be running, to allow access without a password. I have not run the ssh-keygen program for a while, but I believe the command line option is ssh-keygen -t DSA for ssh2.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top