comment out PasswordAuthentication no
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@3277 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
9ccad1353a
commit
8f2c09c99b
@ -97,7 +97,7 @@ sub setupSSH
|
||||
&runcmd("echo \"KeyRegenerationInterval 0\" >>$sshdconfig");
|
||||
&runcmd("echo \"X11Forwarding yes\" >>$sshdconfig");
|
||||
&runcmd("echo \"MaxStartups 1024\" >>$sshdconfig");
|
||||
&runcmd("echo \"PasswordAuthentication no\" >>$sshdconfig");
|
||||
#&runcmd("echo \"PasswordAuthentication no\" >>$sshdconfig");
|
||||
if (!(-e "$sshconfig.ORIG"))
|
||||
{
|
||||
&runcmd("cp $sshconfig $sshconfig.ORIG");
|
||||
|
@ -13,7 +13,7 @@ then
|
||||
sed -i 's/^KeyRegenerationInterval .*$/KeyRegenerationInterval 0/' /etc/ssh/sshd_config
|
||||
sed -i 's/\(.*MaxStartups.*\)/#\1/' /etc/ssh/sshd_config
|
||||
echo "MaxStartups 1024" >>/etc/ssh/sshd_config
|
||||
echo "PasswordAuthentication no" >>/etc/ssh/sshd_config
|
||||
#echo "PasswordAuthentication no" >>/etc/ssh/sshd_config
|
||||
fi
|
||||
|
||||
if [ -r /etc/ssh/sshd_config ]
|
||||
|
Loading…
Reference in New Issue
Block a user