Ensure that the expected port is used

This commit is contained in:
Bob Mottram 2015-11-21 15:47:44 +00:00
parent bbac58020a
commit 48b8940d54
1 changed files with 2 additions and 0 deletions

View File

@ -153,6 +153,8 @@ To complete the installation run the following:
}
configure_ssh {
sed -i "s/Port .*/Port 2222/g" $rootdir/etc/ssh/sshd_config
if [[ "$SSH_PUBKEY" != "no" ]]; then
if [ ! -d $rootdir/home/$MY_USERNAME/.ssh ]; then
mkdir $rootdir/home/$MY_USERNAME/.ssh