mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08:00 
			
		
		
		
	Make AllowedUsers configurable in sshd_config (#8094)
docker/root/usr/bin/entrypoint already allows for the specification
of USER, USER_UID, USER_GID. But since AllowedUsers is hardcoded in
sshd_config, one cannot log in as a user different ftom git.
This change substitutes ${USER} for git in the sshd_config template.
Signed-off-by: Jeronimo Pellegrini <j_p@aleph0.info>
			
			
This commit is contained in:
		
				
					committed by
					
						
						Antoine GIRARD
					
				
			
			
				
	
			
			
			
						parent
						
							85f56546c4
						
					
				
				
					commit
					852b8e2d81
				
			@@ -25,7 +25,7 @@ ChallengeResponseAuthentication no
 | 
			
		||||
PasswordAuthentication no
 | 
			
		||||
PermitEmptyPasswords no
 | 
			
		||||
 | 
			
		||||
AllowUsers git
 | 
			
		||||
AllowUsers ${USER}
 | 
			
		||||
 | 
			
		||||
Banner none
 | 
			
		||||
Subsystem sftp /usr/lib/ssh/sftp-server
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user