From e5e8512e115ba7bc3cd3fa17c26b9de9733f909a Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Sat, 27 Jun 2009 15:54:05 +0200 Subject: [PATCH] script sshd_config munging, II --- input/howto/new-machine.creole | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/input/howto/new-machine.creole b/input/howto/new-machine.creole index f371f56..b234218 100644 --- a/input/howto/new-machine.creole +++ b/input/howto/new-machine.creole @@ -203,8 +203,10 @@ EOF * disable password auth with ssh, once you verified you can log in and become root using keys. {{{ - vi /etc/ssh/sshd_config - | PasswordAuthentication no + #vi /etc/ssh/sshd_config + # | PasswordAuthentication no + + sed -i -e 's/^PasswordAuthentication yes/PasswordAuthentication no/' /etc/ssh/sshd_config && (cd / && env -i /etc/init.d/ssh restart) }}} -- 2.20.1