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:
lissav 2009-04-30 14:54:59 +00:00
parent 9ccad1353a
commit 8f2c09c99b
2 changed files with 2 additions and 2 deletions

View File

@ -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");

View File

@ -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 ]