Altera_Forum
Honored Contributor
17 years agoSSH broken
Under Customize Application/Library Settings
Network Applications --> [*] ssh [*] sshd [*] ssh-keygen I also enabled syslog BusyBox --> [*] System logging utilities --> [*] SysLogD I created a simple /etc/sshd_config file that set the port to 22 (default). I did this because sshd generated an error if there was no config file. I created a host key using ssh-keygen on the nios2 hardware but it was unrecognized as a valid key file. So I generated it on my Linux PC and copied it into the nios2 board. I started the daemon and verified that it was running using ps. Then I ran netstat -tanl do verify that the ssh daemon was listening on port 22. Unfortunately it was not. Looking at the log file it appears that everything was Ok until the very end when I get a "bad protocol" message. The log is included below. Any help with this would be much appreciated. Thanks, Alex Nov 30 00:25:27 HALFDOME_A9 auth.debug sshd[43]: debug2: load_server_config: filename /etc/sshd_config Nov 30 00:25:27 HALFDOME_A9 auth.debug sshd[43]: debug2: load_server_config: done config len = 20 Nov 30 00:25:27 HALFDOME_A9 auth.debug sshd[43]: debug2: parse_server_config: config /etc/sshd_config len 20 Nov 30 00:25:27 HALFDOME_A9 auth.debug sshd[43]: debug3: /etc/sshd_config:1 setting port 22 Nov 30 00:25:27 HALFDOME_A9 auth.debug sshd[43]: debug3: /etc/sshd_config:2 setting protocol 2 Nov 30 00:25:27 HALFDOME_A9 auth.debug sshd[43]: debug1: sshd version OpenSSH_4.7p1 Nov 30 00:25:27 HALFDOME_A9 auth.debug sshd[43]: debug3: Not a RSA1 key file /etc/ssh_host_rsa_key. Nov 30 00:25:27 HALFDOME_A9 auth.debug sshd[43]: debug1: read PEM private key done: type RSA Nov 30 00:25:27 HALFDOME_A9 auth.debug sshd[43]: debug1: private host key:# 0 type 1 RSA Nov 30 00:25:27 HALFDOME_A9 auth.debug sshd[43]: debug3: Not a RSA1 key file /etc/ssh_host_dsa_key. Nov 30 00:25:27 HALFDOME_A9 auth.debug sshd[43]: debug1: read PEM private key done: type DSA Nov 30 00:25:27 HALFDOME_A9 auth.debug sshd[43]: debug1: private host key:# 1 type 2 DSA Nov 30 00:25:27 HALFDOME_A9 auth.debug sshd[43]: debug1: inetd sockets after dupping: 3, 4 Nov 30 00:25:27 HALFDOME_A9 auth.info sshd[43]: Connection from UNKNOWN port 65535 Nov 30 00:25:32 HALFDOME_A9 auth.info sshd[43]: Bad protocol version identification '' from UNKNOWN