Displaying 5 results from an estimated 5 matches for "fork_postauth".
2023 Jun 09
1
Question About Dynamic Remote Forwarding
...see
if (options.fork_after_authentication) {
     if (options.exit_on_forward_failure &&
         options.num_remote_forwards > 0) {
             debug("deferring postauth fork until remote forward "
                   "confirmation received");
      } else
          fork_postauth(ssh);
}
This seems to depend on forwarding_success() for it to then call 
fork_postauth.
If I'm reading this correctly the client sends out a number of forward 
requests which is tracked via forward_confirms_pending in ssh.c.
Is there any equivalent on the server side to track the number of...
2023 Jun 10
1
Question About Dynamic Remote Forwarding
...ter_authentication) {
>     if (options.exit_on_forward_failure &&
>         options.num_remote_forwards > 0) {
>             debug("deferring postauth fork until remote forward "
>                   "confirmation received");
>      } else
>          fork_postauth(ssh);
> }
> 
> 
> This seems to depend on forwarding_success() for it to then call
> fork_postauth.
> 
> If I'm reading this correctly the client sends out a number of forward
> requests which is tracked via forward_confirms_pending in ssh.c.
> 
> Is there any equi...
2010 Aug 31
2
[Bug 1812] New: ControlPersist causes defunct/zombie processes
...,
child_tidptr=0x7f901060c9f0) = 20475
  exit_group(0)                           = ?
It looks like the parent is not reaping this clone after it
terminates."
I can reproduce this.  Using -vvv shows that the process in question
forked by control_persist_detach, and exits in the daemon call in
fork_postauth.  The ssh client doesn't appear to install a SIGCHLD
handler anywhere.
-- 
Configure bugmail: https://bugzilla.mindrot.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
2016 Jan 14
0
Announce: Portable OpenSSH 7.1p2 released
...s->use_roaming = 1;
+	options->use_roaming = 0;
 	if (options->visual_host_key == -1)
 		options->visual_host_key = 0;
 	if (options->ip_qos_interactive == -1)
--- ssh.c	30 Jul 2015 00:01:34 -0000	1.420
+++ ssh.c	13 Jan 2016 23:17:23 -0000
@@ -1882,9 +1882,6 @@ ssh_session2(void)
 			fork_postauth();
 	}
 
-	if (options.use_roaming)
-		request_roaming();
-
 	return client_loop(tty_flag, tty_flag ?
 	    options.escape_char : SSH_ESCAPECHAR_NONE, id);
 }
2020 Mar 14
2
ssh -f and -O ControlPersist=yes, ControlMaster=yes leaves stderr open
..._authentication_flag is not set (i.e., -f has not been passed). This
probably makes sense to not fork twice, but let's look further:
------------------------------------>snip<------------------------------------
/* Do fork() after authentication. Used by "ssh -f" */
static void fork_postauth(void) {
	if (need_controlpersist_detach)
		control_persist_detach();
	[...]
	if (daemon(1, 1) == -1)
------------------------------------>snip<------------------------------------
No closing of FDs through daemon()... and since need_controlpersist_detach will
not be true if fork_after_authen...