OpenSSH on Mandrake 7.1

OpenSSH on Mandrake 7.1

Post by Shippy » Sun, 31 Dec 1899 09:00:00



I'm running OpenSSH v2.1 on my machine and I'm getting the
following error when trying to connect to my machine:

Bad remote protocol version identification: 'sshd: no hostkeys available
-- exiting.
'

Sure enough, the /usr/local/etc/ssh_host_key doesn't exist.
Is there a way to force ssh to create one for me? Or, what
is another way to get that file generated?

Sorry if this is OT in this group.
--
+-----------------------------------------------------+

| Computer Science Major    ICQ: 1786493              |
| New Mexico Institute of Mining and Technology       |
| Homepage: http://www.nmt.edu/~shippy                |
+-----------------------------------------------------+

 
 
 

OpenSSH on Mandrake 7.1

Post by A Guy Called Tykett » Sun, 31 Dec 1899 09:00:00


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


> I'm running OpenSSH v2.1 on my machine and I'm getting the
> following error when trying to connect to my machine:
> Bad remote protocol version identification: 'sshd: no hostkeys available
> -- exiting.
> '
> Sure enough, the /usr/local/etc/ssh_host_key doesn't exist.
> Is there a way to force ssh to create one for me? Or, what
> is another way to get that file generated?

        Give this a try...

        as per the INSTALL file, in OpenSSH-2.1.1p2:
- --snip--

To generate a host key, run "make host-key". Alternately you can do so
manually using the following commands:

    ssh-keygen -b 1024 -f /etc/ssh/ssh_host_key -N ""
    ssh-keygen -d -f /etc/ssh/ssh_host_dsa_key -N ""

Replacing /etc/ssh with the correct path to the configuration directory.
(${prefix}/etc or whatever you specified with --sysconfdir during
configuration)
- --snip--

        I just compiled this, and it worked for me. give it a try.

                                                        BL.
- --


Web + NewsMaster, BOFH.. Smeghead! :)   |   http://www.wizard.com/~tyketto
  PGP: 1024D/E319F0BF 6980 AAD6 7329 E9E6 D569  F620 C819 199A E319 F0BF

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.1e (FreeBSD)
Comment: For info see http://www.gnupg.org

iD8DBQE5YaZlyBkZmuMZ8L8RApYJAKDB3p/68Rg7jLBV41grBt4ysElD1gCfSp3Z
7bMXmRhMiiITJx4/NH1L+I8=
=hSn4
-----END PGP SIGNATURE-----