1835894 Members
2814 Online
110086 Solutions
New Discussion

sshd... keys!!

 
Lorenzo Facello
Valued Contributor

sshd... keys!!

I installed ssh2 on my server.
I configured and generated keys. But when I lunch /usr/local/sbin/sshd
I read :" sshd[10369]: WARNING: Host key pair is not specified, trying to use default 'hostkey'."
4 REPLIES 4
Christian Gebhardt
Honored Contributor

Re: sshd... keys!!

HI
do you have an entry:
HostKey
in your sshd-config-file?

Chris
Steven E. Protter
Exalted Contributor

Re: sshd... keys!!

Did you follow the attached doc? It works pretty well for me. If you follow the key generation and connect instructions precisely it works.

P

Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Sridhar Bhaskarla
Honored Contributor

Re: sshd... keys!!

Hi Lorenzo,

You will need to generate hostkeys before you launch sshd. Try generating them in this way. Go ahead and generate keys for all the versions.

#cd /usr/local/bin

./ssh-keygen -q -b 1024 -t rsa -f /usr/local/etc/openssh/ssh_host_rsa_key -C ''
-N ''
./ssh-keygen -q -b 1024 -t dsa -f /usr/local/etc/openssh/ssh_host_dsa_key -C ''
-N ''
./ssh-keygen -q -b 1024 -t rsa1 -f /usr/local/etc/openssh/ssh_host_key -C '' -N ''

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Steve Post
Trusted Contributor

Re: sshd... keys!!

Did you just install ssh from the depot file,
openssh-3.1p1-sd-11.00.depot?

There is a small bug in the installation. If may have been fixed by now. But you would have problems creating keys. If so, let me know, or look in the forums on the installation problem.
steve