diff options
author | Steven Barth <cyrus@openwrt.org> | 2015-09-07 19:29:25 +0000 |
---|---|---|
committer | Steven Barth <cyrus@openwrt.org> | 2015-09-07 19:29:25 +0000 |
commit | d196b1fc2eddf7cbab4351452b6fc9b41f15b142 (patch) | |
tree | ff881e04c6d2fbcd087a4b16ce3168099e59af04 /package/base-files/files/lib/preinit | |
parent | b850e1e59f5fff02e5719b6b196309f00d600304 (diff) | |
download | upstream-d196b1fc2eddf7cbab4351452b6fc9b41f15b142.tar.gz upstream-d196b1fc2eddf7cbab4351452b6fc9b41f15b142.tar.bz2 upstream-d196b1fc2eddf7cbab4351452b6fc9b41f15b142.zip |
Disable telnet in favor of passwordless SSH
This enables passworldless login for root via SSH whenever no root
password is set (e.g. after reset, flashing without keeping config
or in failsafe) and removes telnet support alltogether.
Signed-off-by: Steven Barth <steven@midlink.org>
SVN-Revision: 46809
Diffstat (limited to 'package/base-files/files/lib/preinit')
-rw-r--r-- | package/base-files/files/lib/preinit/99_10_failsafe_login | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/package/base-files/files/lib/preinit/99_10_failsafe_login b/package/base-files/files/lib/preinit/99_10_failsafe_login index 15dcbd884f..b12e31702a 100644 --- a/package/base-files/files/lib/preinit/99_10_failsafe_login +++ b/package/base-files/files/lib/preinit/99_10_failsafe_login @@ -1,9 +1,10 @@ #!/bin/sh -# Copyright (C) 2006 OpenWrt.org +# Copyright (C) 2006-2015 OpenWrt.org # Copyright (C) 2010 Vertical Communications failsafe_netlogin () { - telnetd -l /bin/login.sh <> /dev/null 2>&1 + dropbearkey -t rsa -s 1024 -f /tmp/dropbear_failsafe_host_key + dropbear -r /tmp/dropbear_failsafe_host_key <> /dev/null 2>&1 } failsafe_shell() { |