11 lines
		
	
	
		
			188 B
		
	
	
	
		
			Plaintext
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			11 lines
		
	
	
		
			188 B
		
	
	
	
		
			Plaintext
		
	
	
		
			Executable File
		
	
	
	
	
| #!/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
 | |
| }
 |