Преглед изворни кода

Ensure that the expected port is used

Bob Mottram пре 9 година
родитељ
комит
48b8940d54
1 измењених фајлова са 2 додато и 0 уклоњено
  1. 2
    0
      src/freedombone-image-customise

+ 2
- 0
src/freedombone-image-customise Прегледај датотеку

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