I'd like to use the ssh daemon with a more restrictive configuration (no root, no passwords). But it looks like /etc/ssh/sshd_config is not actually used by anything.
To be honest, I can't even figure out which ssh daemon is running and where from! It's definitely not in /usr/sbin/sshd or anywhere under /usr, /bin or /sbin (as far as I could see). I also can't see any ssh processes running, even while I'm connected through ssh (!)
Any information about this would be really helpful.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I have missed the forum for few days but you have answered you own question correctly. Dropbear is the ssh daemon used by default, obviously you may install traditional sshd server (apt-get install openssh-server). I have loaded dropbear because has a small footprint and less memory consumption than openssh, it's less robust when you use it in an heavy loaded machine but I guess it's not the case for a small ARM embedded device, has port forwarding features and it's more easy to configure. /etc/ssh dir was there probably due to a refuse of my previous configs.
Cheers
Ben
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
First of all, thanks a lot for a great distro!
I'd like to use the ssh daemon with a more restrictive configuration (no root, no passwords). But it looks like /etc/ssh/sshd_config is not actually used by anything.
To be honest, I can't even figure out which ssh daemon is running and where from! It's definitely not in /usr/sbin/sshd or anywhere under /usr, /bin or /sbin (as far as I could see). I also can't see any ssh processes running, even while I'm connected through ssh (!)
Any information about this would be really helpful.
Ok, I've found the answer, if anyone's interested.
The ssh daemon is called dropbear.
To disable root logins, you need to use '-w'. To disable passwords, you need to use '-s'.
This can (should?) be set in /etc/defaults/dropbear. Change it so that DROPBEAR_EXTRA_ARGS looks like this:
That's it.
The Dropbear settings are in /etc/default/dropbear, not /etc/defaults/dropbear. Thank you for the information about this.
I have missed the forum for few days but you have answered you own question correctly. Dropbear is the ssh daemon used by default, obviously you may install traditional sshd server (apt-get install openssh-server). I have loaded dropbear because has a small footprint and less memory consumption than openssh, it's less robust when you use it in an heavy loaded machine but I guess it's not the case for a small ARM embedded device, has port forwarding features and it's more easy to configure. /etc/ssh dir was there probably due to a refuse of my previous configs.
Cheers
Ben