mirror of
				https://github.com/zulip/zulip.git
				synced 2025-10-31 03:53:50 +00:00 
			
		
		
		
	install-server: Explicitly disable ControlMaster for the initial ssh
If you use persistent ssh connections, ssh'ing as admin will cause a sshd process to hang around on the server, preventing us from deleting the admin account. Therefore, we disable persistent connections for that ssh connection. (imported from commit 2d043768417d20ef2f12695475a20b74bf3374de)
This commit is contained in:
		| @@ -34,7 +34,7 @@ SSH_OPTS="-o HostKeyAlgorithms=ssh-rsa" | ||||
|  | ||||
| set +e | ||||
|  | ||||
| ssh $SSH_OPTS "$server" -t -i "$amazon_key_file" -ladmin <<EOF | ||||
| ssh $SSH_OPTS "$server" -t -i "$amazon_key_file" -ladmin -o "ControlMaster=no" <<EOF | ||||
| sudo sed -i 's/PermitRootLogin no/PermitRootLogin yes/g' /etc/ssh/sshd_config | ||||
| sudo mkdir ~root/.ssh && sudo cp .ssh/authorized_keys ~root/.ssh/authorized_keys | ||||
| sudo service ssh restart | ||||
|   | ||||
		Reference in New Issue
	
	Block a user