Bob Mottram 10 년 전
부모
커밋
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