search for: control_persist

Displaying 6 results from an estimated 6 matches for "control_persist".

2005 Jun 23
0
ControlPersist.
...red, btw. --- openssh/clientloop.c~ 2005-06-17 03:59:35.000000000 +0100 +++ openssh/clientloop.c 2005-06-23 11:05:11.000000000 +0100 @@ -1271,8 +1271,28 @@ static void client_channel_closed(int id, void *arg) { channel_cancel_cleanup(id); - session_closed = 1; leave_raw_mode(); + if (options.control_persist && options.control_path != NULL && control_fd != -1) { + int pid = fork(); + + if (pid < 0) { + error("fork: %.100s", strerror(errno)); + /* Just exit */ + session_closed = 1; + return; + } + if (pid != 0) { + /* We are the parent. Exit, leaving the child...
2020 Mar 14
2
ssh -f and -O ControlPersist=yes, ControlMaster=yes leaves stderr open
...its file descriptors - at least in children. The OpenSSH client does not do that in some cases... From current master's ssh.c: ------------------------------------>snip<------------------------------------ static int ssh_session2(struct ssh *ssh, struct passwd *pw) { [...] if (options.control_persist && muxserver_sock != -1) { [...] if (!fork_after_authentication_flag) need_controlpersist_detach = 1; fork_after_authentication_flag = 1; } ------------------------------------>snip<------------------------------------ Note how need_controlpersist_detach is only set to 1 if...
2013 Mar 22
1
[PATCH] Allow matching HostName against Host entries
...@@ -970,6 +973,10 @@ intptr = &options->hash_known_hosts; goto parse_flag; + case oMatchHostName: + intptr = &options->match_host_name; + goto parse_flag; + case oTunnel: intptr = &options->tun_open; arg = strdelim(&s); @@ -1207,6 +1214,7 @@ options->control_persist = -1; options->control_persist_timeout = 0; options->hash_known_hosts = -1; + options->match_host_name = -1; options->tun_open = -1; options->tun_local = -1; options->tun_remote = -1; @@ -1345,6 +1353,8 @@ } if (options->hash_known_hosts == -1) options->hash...
2011 Mar 28
15
[Bug 1883] New: use setproctitle for persistent mux master
https://bugzilla.mindrot.org/show_bug.cgi?id=1883 Summary: use setproctitle for persistent mux master Product: Portable OpenSSH Version: 5.8p1 Platform: All OS/Version: All Status: NEW Severity: enhancement Priority: P2 Component: ssh AssignedTo: unassigned-bugs at mindrot.org ReportedBy:
2007 Jul 05
36
[Bug 1330] New: RFE: 'ControlPersist' support -- automatically fork and leave ControlMaster behind as a dæmon
http://bugzilla.mindrot.org/show_bug.cgi?id=1330 Summary: RFE: 'ControlPersist' support -- automatically fork and leave ControlMaster behind as a d?mon Product: Portable OpenSSH Version: 4.6p1 Platform: Other OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component:
2017 Oct 10
3
tunnel device name acquisition?
Numerous how-tos all over the Internet show how one would set up a tunnel using ssh, e.g.: ssh -f -o Tunnel=ethernet <server_ip> true I was wondering if there's a way to subsequently acquire the names of the local and remote tun/tap interfaces (e.g., using the default "-w any:any") for subsequent automatic tunnel configuration, e.g.: ip link set $TapDev up ip link set