Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Can no longer SSH

Featured Replies

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

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...

  • 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...

  • 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. 

  • 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. 

  • 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.
  • 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.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.