瀏覽代碼

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