Browse Source

Ensure that the expected port is used

Bob Mottram 9 years ago
parent
commit
48b8940d54
1 changed files with 2 additions and 0 deletions
  1. 2
    0
      src/freedombone-image-customise

+ 2
- 0
src/freedombone-image-customise View File

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