projects
/
mirror
/
dsa-wiki.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
18c1347
)
script sshd_config munging, II
author
Peter Palfrader
<peter@palfrader.org>
Sat, 27 Jun 2009 13:54:05 +0000
(15:54 +0200)
committer
Peter Palfrader
<peter@palfrader.org>
Sat, 27 Jun 2009 13:54:05 +0000
(15:54 +0200)
input/howto/new-machine.creole
patch
|
blob
|
history
diff --git
a/input/howto/new-machine.creole
b/input/howto/new-machine.creole
index
f371f56
..
b234218
100644
(file)
--- 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)
}}}