How to disable SSH password login?
-
Hi Omega Team,
I wana disable the root account login via SSH by password.
Could you tell how to do it?I can not find the sshd config file at "/etc/ssh/sshd_config".
PubkeyAuthentication yes
// disable ssh text password login(private key file login only).
PasswordAuthentication noThank you!
David
-
Maybe it is not possible (for security reasons, I suppose)... Are you sure you want to do it?
I suggest to set up a key-based ssh login if putting every time the password is annoying to you.
-
Hi, is there a guide somewhere to setting up a key based login on the omega2?
-
@Ian-Marchant, @David-W, :
https://community.onion.io/topic/1600/how-to-configure-dropbear-for-key-based-auth-only/3
-
@Luciano-S. :thumbsup_tone2: Thank you! It works well.
$ uci export dropbear $ uci set dropbear.@dropbear[0].PasswordAuth=0 $ uci set dropbear.@dropbear[0].RootPasswordAuth=0 $ uci commit dropbear $ uci export dropbear $ cat /etc/config/dropbear $ /etc/init.d/dropbear restart
Ref:
https://community.onion.io/topic/1600/how-to-configure-dropbear-for-key-based-auth-only/3
https://wiki.openwrt.org/doc/howto/dropbear.public-key.auth
https://wiki.openwrt.org/doc/uci/dropbear
-
@Stefano-P. Thanks for your reply : )