17 lines
		
	
	
		
			401 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
		
			401 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| function zssh_generate_hostaccessconfig()
 | |
| {
 | |
|   sshmatch="${1}"
 | |
|   sshcontents=${zssh_host_config_accesses[$sshmatch]}
 | |
|   sshmatch_user=${sshmatch%%@*}
 | |
|   sshmatch_host=${sshmatch##*@}
 | |
|   if [[ "$sshmatch_host" == "$sshmatch_user" ]]
 | |
|   then
 | |
|     sshmatch_user=''
 | |
|   fi
 | |
|   << HERE
 | |
| Match ${sshmatch_host:+host $sshmatch_host,} ${sshmatch_user:+user $sshmatch_user,}
 | |
|   ${sshcontents}
 | |
|   ${zssh_host_config}
 | |
| HERE
 | |
| }
 |