sshd starting errors - SSH

This is a discussion on sshd starting errors - SSH ; This is OpenSSH 4.4 on Solaris 8. Any idea what's going on? #/etc/init.d ./sshd start 3 SSHD: Generating DSA host key... Generating public/private dsa key pair. /usr/local/etc/ssh_host_dsa_key already exists. Overwrite (y/n)? y Your identification has been saved in /usr/local/etc/ssh_host_dsa_key. Your ...

+ Reply to Thread
Results 1 to 4 of 4

Thread: sshd starting errors

  1. sshd starting errors


    This is OpenSSH 4.4 on Solaris 8.
    Any idea what's going on?


    #/etc/init.d ./sshd start
    3 SSHD: Generating DSA host key...
    Generating public/private dsa key pair.
    /usr/local/etc/ssh_host_dsa_key already exists.
    Overwrite (y/n)? y
    Your identification has been saved in /usr/local/etc/ssh_host_dsa_key.
    Your public key has been saved in /usr/local/etc/ssh_host_dsa_key.pub.
    The key fingerprint is:
    08:cb:f2:a6:f5:a8:07:45:92:5c:a7:f5:2c:07:af:cb root@baj4
    SSHD: Starting the Secure Shell Daemon
    /usr/local/etc/sshd_config line 30: Deprecated option
    RhostsAuthentication
    /usr/local/etc/sshd_config line 53: Deprecated option CheckMail
    Disabling protocol version 2. Could not load host key
    sshd: no hostkeys available -- exiting.


  2. Re: sshd starting errors

    >
    > This is OpenSSH 4.4 on Solaris 8.
    > Any idea what's going on?


    As it says at the bottom, you have no hostkeys. Use ssh-keygen to
    generate some, and put them in the default location, here probably
    /usr/local/etc/ssh_host_{dsa,rsa}_key{.pub}

    >
    > #/etc/init.d ./sshd start
    > 3 SSHD: Generating DSA host key...
    > Generating public/private dsa key pair.
    > /usr/local/etc/ssh_host_dsa_key already exists.
    > Overwrite (y/n)? y
    > Your identification has been saved in /usr/local/etc/ssh_host_dsa_key.
    > Your public key has been saved in /usr/local/etc/ssh_host_dsa_key.pub.
    > The key fingerprint is:
    > 08:cb:f2:a6:f5:a8:07:45:92:5c:a7:f5:2c:07:af:cb root@baj4
    > SSHD: Starting the Secure Shell Daemon
    > /usr/local/etc/sshd_config line 30: Deprecated option
    > RhostsAuthentication
    > /usr/local/etc/sshd_config line 53: Deprecated option CheckMail
    > Disabling protocol version 2. Could not load host key
    > sshd: no hostkeys available -- exiting.



    --
    Richard Silverman
    res@qoxp.net


  3. Re: sshd starting errors

    I regenerated all of these files, yet I still cannot start the sshd
    daemon with Protocol 2 enabled.
    Which key does it want?

    ll /usr/local/etc/ssh_host_[dr]sa_key*
    -rw------- 1 root root 672 Jul 19 16:13 /usr/local/etc/
    ssh_host_dsa_key
    -rw------- 1 root other 672 Jul 19 15:09 /usr/local/etc/
    ssh_host_dsa_key.b
    -rw-r--r-- 1 root other 600 Jul 19 16:13 /usr/local/etc/
    ssh_host_dsa_key.pub
    -rw------- 1 root root 600 Jul 17 11:51 /usr/local/etc/
    ssh_host_dsa_key.pub.pub
    -rw------- 1 root root 1675 Jul 19 16:12 /usr/local/etc/
    ssh_host_rsa_key
    -rw------- 1 root root 887 Jul 19 14:31 /usr/local/etc/
    ssh_host_rsa_key.b
    -rw-r--r-- 1 root root 392 Jul 19 16:12 /usr/local/etc/
    ssh_host_rsa_key.pub

    #:/etc/init.d ./sshd start
    SSHD: Starting the Secure Shell Daemon
    /usr/local/etc/sshd_config line 30: Deprecated option
    RhostsAuthentication
    /usr/local/etc/sshd_config line 53: Deprecated option CheckMail
    Disabling protocol version 2. Could not load host key



  4. Re: sshd starting errors

    On 2007-07-23, SQ wrote:

    > Which key does it want?
    > ll /usr/local/etc/ssh_host_[dr]sa_key*
    > Disabling protocol version 2. Could not load host key


    Maybe in /etc/ssh/ or some other place. Check with
    strings on the sshd binary:

    # strings - /usr/sbin/sshd | grep /ssh_host_key
    /etc/ssh/ssh_host_key

    --
    Elvis Notargiacomo master AT barefaced DOT cheek
    http://www.notatla.org.uk/goen/

+ Reply to Thread