mirror of
				https://github.com/clearml/dropbear
				synced 2025-06-26 18:17:32 +00:00 
			
		
		
		
	Add manpage and log for forced_command
This commit is contained in:
		
							parent
							
								
									ac9a4c839f
								
							
						
					
					
						commit
						103036c546
					
				| @ -91,6 +91,10 @@ if 0 disables keepalives. If no response is received for 3 consecutive keepalive | ||||
| .B \-I \fIidle_timeout | ||||
| Disconnect the session if no traffic is transmitted or received for \fIidle_timeout\fR seconds. | ||||
| .TP | ||||
| .B \-c \fIforced_command | ||||
| Disregard the command provided by the user and always run \fIforced_command\fR. This also | ||||
| overrides any authorized_keys command= option. | ||||
| .TP | ||||
| .B \-V | ||||
| Print the version | ||||
| 
 | ||||
| @ -129,6 +133,7 @@ same functionality with other means even if no-pty is set. | ||||
| .TP | ||||
| .B command=\fR"\fIforced_command\fR" | ||||
| Disregard the command provided by the user and always run \fIforced_command\fR. | ||||
| The -c command line option overrides this. | ||||
| 
 | ||||
| The authorized_keys file and its containing ~/.ssh directory must only be | ||||
| writable by the user, otherwise Dropbear will not allow a login using public | ||||
|  | ||||
| @ -351,6 +351,10 @@ void svr_getopts(int argc, char ** argv) { | ||||
| 		} | ||||
| 		opts.idle_timeout_secs = val; | ||||
| 	} | ||||
| 
 | ||||
| 	if (svr_opts.forced_command) { | ||||
| 		dropbear_log(LOG_INFO, "Forced command set to '%s'", svr_opts.forced_command); | ||||
| 	} | ||||
| } | ||||
| 
 | ||||
| static void addportandaddress(const char* spec) { | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user