search for: sshmux_command_open

Displaying 4 results from an estimated 4 matches for "sshmux_command_open".

2008 Jun 19
5
Portforwarding using the control master.
Hi all, currently I am considering writing a patch for OpenSSH that will allow portforwarding using the control_master unix domain socket. The idea is to introduce an extra SSHMUX command, SSHMUX_COMMAND_SOCKS, which will then pass control to the normal socks functions used for dynamic forwarding. The main reason for me to write this patch are: - some more control over who gets to connect to
2010 Jan 14
1
ssh(1) multiplexing rewrite
...op.h 14 Jan 2010 03:07:49 -0000 @@ -56,7 +56,7 @@ typedef void global_confirm_cb(int, u_in void client_register_global_confirm(global_confirm_cb *, void *); /* Multiplexing protocol version */ -#define SSHMUX_VER 2 +#define SSHMUX_VER 4 /* Multiplexing control protocol flags */ #define SSHMUX_COMMAND_OPEN 1 /* Open new connection */ @@ -71,3 +71,4 @@ void client_register_global_confirm(glo void muxserver_listen(void); int muxserver_accept_control(void); void muxclient(const char *); +void mux_exit_message(Channel *, int); Index: mux.c ============================================================...
2009 Jul 08
4
Feature request: "SetupCommand" invoked before connecting
Hi, (I'm not subscribed to the list, so please CC me on reply.) I'd like to request adding a feature to OpenSSH: Task: ~~~~~ It is quite sometime useful to invoke a program prior to connecting to an ssh server. The most common use case will probably be port knocking. That is a small program sends certain packets to a server and the server reacts to this by unlocking the ssh port, which
2007 Aug 03
1
race condition with ControlMaster=auto
...(); @@ -1319,7 +1323,13 @@ switch (options.control_master) { case SSHCTL_MASTER_AUTO: case SSHCTL_MASTER_AUTO_ASK: - debug("auto-mux: Trying existing master"); + /* see if we can create a control master socket + to avoid a race between two auto clients */ + if (mux_command == SSHMUX_COMMAND_OPEN && + ssh_control_listener(1)) + return; + debug("trying to connect to control master socket %s", + options.control_path); /* FALLTHROUGH */ case SSHCTL_MASTER_NO: break; @@ -1452,6 +1462,8 @@ signal(SIGINT, control_client_sighandler); signal(SIGTERM, contr...