Bob Mottram 11 年前
父节点
当前提交
4574b22693
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2
    0
      install-freedombone.sh

+ 2
- 0
install-freedombone.sh 查看文件

@@ -3,6 +3,7 @@
3 3
 
4 4
 DOMAIN_NAME=$1
5 5
 MY_USERNAME=$2
6
+SSH_PORT=2222
6 7
 
7 8
 # Directory where source code is downloaded and compiled
8 9
 INSTALL_DIR=/root/build
@@ -123,6 +124,7 @@ function hardware_random_number_generator
123 124
 }
124 125
 
125 126
 function configure_ssh {
127
+  sed -i 's/Port 22/Port $SSH_PORT/g' /etc/ssh/sshd_config
126 128
   sed -i 's/PermitRootLogin without-password/PermitRootLogin no/g' /etc/ssh/sshd_config
127 129
   sed -i 's/X11Forwarding yes/X11Forwarding no/g' /etc/ssh/sshd_config
128 130
   sed -i 's/ServerKeyBits 1024/ServerKeyBits 4096/g' /etc/ssh/sshd_config