September 21, 20169 yr Running 6.2, everything was working until last night. Last night, we had a power outage, power was out for ~15 minutes. I have my tower on a UPS which triggered and should have kept it up during the entire outage. I wasnt able to check because of crying kids, etc. This morning, I find I am no longer able to ssh to the tower. I can get to the WebUI just fine, all the dockers are working fine and I can access them. The network is fine and everything BUT ssh seems to be working. Everytime I try to connect, I get connection refused. I have the "Command Line Tool" plugin which implements the shell In a box. I can open that and log in with it and get access to the shell. From within the ShellInABox, when I try to type "ssh localhost" I get a connection refused error. I do have the deny hosts plugin installed, but even when I disable it, I get the same connection refused error. Diagnostics attached. tower-diagnostics-20160921-1012.zip
September 21, 20169 yr Perhaps your sshd service died. Telnet in and start it back up. If memory serves it is something like /etc/rc.d/rc.sshd start I guess you could do a ps aux|grep sshd first to make sure it's actually not running. If it is running then I don't know...
September 21, 20169 yr Author running ps aux | grep sshd returns: root 2393 0.0 0.0 176 4 ? Ss 09:16 0:00 runsv sshd root 5508 0.0 0.0 176 4 ? Ss 09:18 0:00 runsv sshd root 9930 0.0 0.0 9652 1852 pts/0 S+ 11:01 0:00 grep --color=auto sshd root 22288 0.0 0.0 176 4 ? Ss 09:13 0:00 runsv sshd root 22607 0.0 0.0 176 4 ? Ss 09:13 0:00 runsv sshd Perhaps your sshd service died. Telnet in and start it back up. If memory serves it is something like /etc/rc.d/rc.sshd start I guess you could do a ps aux|grep sshd first to make sure it's actually not running. If it is running then I don't know...
September 21, 20169 yr Author Ok, from the console I tried to do a /etc/rc.d/rc.sshd start and got the following. (/etc/rc.d) Tower $ rc.sshd start key_load_public: invalid format Could not load host key: /etc/ssh/ssh_host_rsa_key key_load_public: invalid format Could not load host key: /etc/ssh/ssh_host_dsa_key key_load_public: invalid format Could not load host key: /etc/ssh/ssh_host_ecdsa_key key_load_public: invalid format Could not load host key: /etc/ssh/ssh_host_ed25519_key Disabling protocol version 2. Could not load host key sshd: no hostkeys available -- exiting.
September 21, 20169 yr Author I tried to look at the ssh_host_* keys and they are all 0 length files. nothing in them. how do I fix that? Ok, from the console I tried to do a /etc/rc.d/rc.sshd start and got the following. (/etc/rc.d) Tower $ rc.sshd start key_load_public: invalid format Could not load host key: /etc/ssh/ssh_host_rsa_key key_load_public: invalid format Could not load host key: /etc/ssh/ssh_host_dsa_key key_load_public: invalid format Could not load host key: /etc/ssh/ssh_host_ecdsa_key key_load_public: invalid format Could not load host key: /etc/ssh/ssh_host_ed25519_key Disabling protocol version 2. Could not load host key sshd: no hostkeys available -- exiting.
September 21, 20169 yr Community Expert I tried to look at the ssh_host_* keys and they are all 0 length files. nothing in them. how do I fix that? Ok, from the console I tried to do a /etc/rc.d/rc.sshd start and got the following. (/etc/rc.d) Tower $ rc.sshd start key_load_public: invalid format Could not load host key: /etc/ssh/ssh_host_rsa_key key_load_public: invalid format Could not load host key: /etc/ssh/ssh_host_dsa_key key_load_public: invalid format Could not load host key: /etc/ssh/ssh_host_ecdsa_key key_load_public: invalid format Could not load host key: /etc/ssh/ssh_host_ed25519_key Disabling protocol version 2. Could not load host key sshd: no hostkeys available -- exiting. you need to look in the config/ssh folder on the flash drive which is where the ssh keys are loaded from during the boot process. I suspect you will see the 0 length files there. I think if you simply delete existing key files there then new keys are generated the next time the system boots.
September 21, 20169 yr Author Thanks, that worked. you need to look in the config/ssh folder on the flash drive which is where the ssh keys are loaded from during the boot process. I suspect you will see the 0 length files there. I think if you simply delete existing key files there then new keys are generated the next time the system boots.
Archived
This topic is now archived and is closed to further replies.