Skip to content

Commit

Permalink
ssh
Browse files Browse the repository at this point in the history
  • Loading branch information
leaddevops committed Mar 30, 2024
1 parent 1ef044a commit bc67ce0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scripts/setupUser.sh
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,12 @@ update_conf()
if [ -f $sshdconfd/60-cloudimg-settings.conf ];then
sed -i '/PasswordAuthentication.*no/d' $sshdconfd/60-cloudimg-settings.conf
sed -i '/PasswordAuthentication.*yes/d' $sshdconfd/60-cloudimg-settings.conf
echo "PasswordAuthentication yes" >> $sshdconfd/60-cloudimg-settings.conf
else
echo "$sshdconfd/60-cloudimg-settings.conf does not exist"
fi
else
echo "$sshdconfd does not exist... continue with $sshdfile"
fi
if [ -f $sshdfile ];then
cp -p $sshdfile /home/backup/sshd_config-$now
Expand Down

0 comments on commit bc67ce0

Please sign in to comment.