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
 }
153
 }
154
 
154
 
155
 configure_ssh {
155
 configure_ssh {
156
+    sed -i "s/Port .*/Port 2222/g" $rootdir/etc/ssh/sshd_config
157
+
156
     if [[ "$SSH_PUBKEY" != "no" ]]; then
158
     if [[ "$SSH_PUBKEY" != "no" ]]; then
157
         if [ ! -d $rootdir/home/$MY_USERNAME/.ssh ]; then
159
         if [ ! -d $rootdir/home/$MY_USERNAME/.ssh ]; then
158
             mkdir $rootdir/home/$MY_USERNAME/.ssh
160
             mkdir $rootdir/home/$MY_USERNAME/.ssh