11 lines
		
	
	
		
			188 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
		
		
			
		
	
	
			11 lines
		
	
	
		
			188 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
|  | #!/usr/bin/env ssm | ||
|  | 
 | ||
|  | service_respawn = always | ||
|  | service_command = /usr/bin/sshd -D -f "/etc/ssh/sshd_config" | ||
|  | 
 | ||
|  | pre_start() { | ||
|  | 	if ! [[ -e "/etc/ssh/ssh_host_key" ]]; then | ||
|  | 		ssh-keygen -A | ||
|  | 	fi | ||
|  | } |