SSH Server configuration

(bohuzel maji pravdu)

Yeap, they are right.
Even if you select Advanced config password (http:///config/system-password/ ) then sshd is NOT enabled.
Port 22 is simply down. And yes, Im at LuCI.

FIX: http://i.imgur.com/sSd7A27.png
(call those command via custom-command call - http:///cgi-bin/luci/admin/system/commands)

ssh-keygen -t rsa -f /etc/ssh/ssh_host_rsa_key 
ssh-keygen -t dsa -f /etc/ssh/ssh_host_dsa_key
ssh-keygen -t ecdsa -f /etc/ssh/ssh_host_ecdsa_key

ls -al /etc/ssh
/etc/init.d/sshd start

(more: ask.xmodulo.com/sshd-error-could-not-load-host-key.html)

Note: you can open port 23 ( /config/data-collection/ ) but thats honeypot :wink: So dont go there.
Issue: http://i.imgur.com/7k8h86R.png

For debug (and developers):
# /etc/init.d/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.

2 Likes