Hello all,
I'm trying to install ssh2d (2.0.13) on 2 different linux machines.
I can compile and run it on the first machine. And I can login
from the second machine with ssh. When I run ssh2d -d 31 from the second
machine it fails.
[root@gw sbin]# ./sshd2 -d 31
debug: SshEventLoop/sshunixeloop.c:153/ssh_event_loop_initialize: Initialized the
event loop.
debug: SshEventLoop/sshunixeloop.c:402/ssh_register_signal: Registered signal 1.
debug: SshEventLoop/sshunixeloop.c:402/ssh_register_signal: Registered signal 2.
.
.
.
debug: SshEventLoop/sshunixeloop.c:402/ssh_register_signal: Registered signal 17.
debug: SshConfig/sshconfig.c:574/ssh_config_set_parameter: Got config cipherlist
"AnyStd"
debug: SshConfig/sshconfig.c:633/ssh_config_set_parameter: Final cipherlist
"3des-cbc,blowfish-cbc,twofish-cbc,arcfour,none"
debug: Reading private host key from /etc/ssh2/hostkey
debug: MRC Magic is encrypted.
debug: MRC pk_magic = 1064303083 pk_length = 522.
debug: MRC Testing corruptness.
debug: MRC Testing NTREE: 0.
debug: MRC looking at the node.
debug: MRC node identifier: dl-modp
debug: MRC comparing dl-modp to dl-modp
debug: MRC child node name: dsa-nist-sha1
debug: MRC child node name: plain
debug: MRC Status: (0) Operation was successful.
debug: MRC key length (24) > cipher key length (0) or expand key (1)
debug: MRC Extra space required.
debug: MRC key length (24) ? cipher key length (24)
debug: MRC Failed to decode buffer.
debug: MRC ssh decode status (1) tmp_length (1356746635) > ssh buffer length (452)
WARNING: ssh_privkey_read: Algorithm or key not supported.(1)
sshd2[21099]: FATAL ERROR: ssh_privkey_read from /etc/ssh2/hostkey failed.
FATAL: ssh_privkey_read from /etc/ssh2/hostkey failed.
This is the same section of log from the fisrt machine where ssh2d works:
debug: SshEventLoop/sshunixeloop.c:402/ssh_register_signal: Registered signal 17.
debug: SshConfig/sshconfig.c:574/ssh_config_set_parameter: Got config cipherlist
"AnyStd"
debug: SshConfig/sshconfig.c:633/ssh_config_set_parameter: Final cipherlist
"3des-cbc,blowfish-cbc,twofish-cbc,arcfour,none"
debug: Reading private host key from /etc/ssh2/hostkey
debug: Magic is encrypted.
debug: MRC pk_magic = 1064303083 pk_length = 514.
debug: MRC Testing corruptness.
debug: MRC Testing NTREE: 0.
debug: MRC looking at the node.
debug: MRC node identifier: dl-modp
debug: MRC comparing dl-modp to dl-modp
debug: MRC child node name: dsa-nist-sha1
debug: MRC child node name: plain
debug: MRC Status: (0) Operation was successful.
debug: MRC key length (32) > cipher key length (0) or expand key (1)
debug: MRC Extra space required.
debug: MRC key length (32) ? cipher key length (32)
debug: MRC Everything A-OK.
debug: Key comment: 1024-bit dsa hostkey
debug: SshUnixConfig/sshunixconfig.c:270/ssh_server_load_host_key: Reading public host
key from: /etc/ssh2/hostkey.pub
Could it be in the method that I generate the host keys on the second
machine (taken from shell an sh script):
# Gen a key.
umask 022
PP1=`uname -ns`
PP2=`date +%T`
PP=`echo $PP1 PP2`
/usr/local/bin/ssh-keygen2 -p "$PP" -b 1024 -t dsa -c "Generating 1024-bit dsa
hostkey. This may take a while." -o /etc/ssh2/hostkey
If you can... please help.
Thanks.
--
Milton Calnek
At Telus: +1 403 530 3827 [EMAIL PROTECTED]
Fax: +1 403 530 4467
At Home: +1 403 229 2399 [EMAIL PROTECTED]
In Continental N/A: Cell: +1 403 870 8479
www.tti-telecom.com