X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=input%2Fhowto%2Fnew-machine.creole;h=b23421841d432aa582d6e727260e780ff9c75942;hb=e5e8512e115ba7bc3cd3fa17c26b9de9733f909a;hp=f371f56fe5e88dd11cd4addea513371a96885e41;hpb=18c1347c8dddc0f23027410e0f5c82c19f61e3a6;p=mirror%2Fdsa-wiki.git 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) }}}