Ethical Hacking

Learn to find vulnerabilities before the bad guys do! Gain real world hands on hacking experience in our state of the art hacking lab. Course designed and taught by expert instructors with years of penetration testing experience. 12 student maximum in every class. Certification attempt included in every package.
Computer Forensics Training at InfoSec Institute

Gain the in-demand skills of a certified computer examiner, learn to recover trace data left behind by fraud, theft, and cybercrime perpetrators. Discover the source of computer crime and abuse at your organization so that it never happens again. All of our class sizes are guaranteed to be 12 students or less to facilitate one-on-one interaction with one of our expert instructors.




Network Security Secure-Shell
[Top] [All Lists]

Re: OpenSSH question of server keys on FreeBSD --> Solution

Subject: Re: OpenSSH question of server keys on FreeBSD --> Solution
Date: Wed, 13 Apr 2005 18:23:14 -0400
Hi,

First a hearty thank you to all that replied to my conundrum.

Here is how I got past the problem of my (FreeBSD 5.3 Release)
OpenSSH's  "sshd" key errors, not loading at startup:

1)  I had an incorrect line in /etc/rc.conf.  One problem for me was
an incorrect path to the program.  The correct lines that mattered
were:

 sshd_program=/usr/sbin/sshd
 sshd_enable="YES"

2)  I also did not have correct keys generated for the sshd
aplication.  Based upon your helpful e-mails and the man pages I found
the following worked just fine to create the SSHV2 dsa host key:

 ssh-keygen -t dsa -f /etc/ssh/ssh_host_dsa_key

3) Also, based upon recommendations I turned off DNS lookup by my sshd
server in the /etc/ssh/sshd_config file.

 UseDNS no

All is well here and my adventure helps someone else some day.

Correcting these problems got my Putty and WinSCP connections down to
around 2-3 seconds (from around 80-90 seconds).

Thanks again for the excellent advice,

Joel Desrochers

<Prev in Thread] Current Thread [Next in Thread>