Menu

sshd configuration

Omri Barel
2013-05-25
2013-08-22
  • Omri Barel

    Omri Barel - 2013-05-25

    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.

     
  • Omri Barel

    Omri Barel - 2013-05-26

    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:

    # any additional arguments for Dropbear
    DROPBEAR_EXTRA_ARGS="-w -s"
    

    That's it.

     
    • buzzk

      buzzk - 2013-08-22

      The Dropbear settings are in /etc/default/dropbear, not /etc/defaults/dropbear. Thank you for the information about this.

       
  • Andrea Benini

    Andrea Benini - 2013-05-27

    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

     

Anonymous
Anonymous

Add attachments
Cancel