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