search for: channel_by_id

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

2010 Jan 27
1
Multiplexing bug on client exit
Hi, With the 20100127 snapshot, there appears to be a bug in the multiplexing support that causes the master to die under some circumstances when a slave session exits. The error messages that I am getting are: cfe1.imorgan> exit Connection to cfe1 closed. $ channel_by_id: 2: bad id: channel free client_input_channel_req: channel 2: unknown channel channel_by_id: 2: bad id: channel free Disconnecting: Received oclose for nonexistent channel 2. This is triggered by using a multiplexed connection to a bastion host and a ProxyCommand (similar to netcat) associated wit...
2007 Aug 03
1
Channel Patch
...els[] array entirely (and the attendant code to create the array). I did not, however, include linked list pointers in the Channel struct. Mostly because its easier for me to work with at this time. I expect I'll do it in the next iteration though. Removing the channels array does mean that channel_by_id must iterate through a linked list rather than doing an index lookup. I don't think this will have much impact on performance in the majority of cases. On the plus side, I think I can eliminate a lot of the NULL conditionals. I haven't yet though. Anyway, if anyone is interested the pa...
2013 Aug 05
2
RemoteForward and dynamically allocated listen port
...- session.c.orig 2013-08-03 13:22:10.354171156 -0700 +++ session.c 2013-08-05 09:58:00.017397667 -0700 @@ -1307,6 +1307,17 @@ child_set_env(&env, &envsize, SSH_AUTHSOCKET_ENV_NAME, auth_sock_name); + char name[256]; + u_int n = 0; + for (i = 0; i < 100; i++) { + Channel *c = channel_by_id(i); + if (c == NULL || c->type != SSH_CHANNEL_RPORT_LISTENER) + continue; + snprintf(name, sizeof name, "SSH_REMOTE_FORWARD_PORT_%d", n); + snprintf(buf, sizeof buf, "%d", c->listening_port); + child_set_env(&env, &envsize, name, buf); + } + /* read $HOME/....
2010 Jan 14
1
ssh(1) multiplexing rewrite
...xserver_sock = socket(PF_UNIX, SOCK_STREAM, 0)) < 0) - fatal("%s socket(): %s", __func__, strerror(errno)); +/* Cleanup callback fired on closure of mux slave _session_ channel */ +/* ARGSUSED */ +static void +mux_master_session_cleanup_cb(int cid, void *unused) +{ + Channel *cc, *c = channel_by_id(cid); - old_umask = umask(0177); - if (bind(muxserver_sock, (struct sockaddr *)&addr, addr.sun_len) == -1) { - muxserver_sock = -1; - if (errno == EINVAL || errno == EADDRINUSE) { - error("ControlSocket %s already exists, " - "disabling multiplexing", options.con...
2013 Mar 16
5
[Bug 2079] New: openssh 6.1/6.2 disconnect due to channel bug
...-S /tmp/test -W 2.2.2.2:22 ^C << hit control-c >> test$ ssh 0 -S /tmp/test -W 2.2.2.2:22 <<wait about 90 seconds for ssh to timeout and exit>> test$ ssh 0 -S /tmp/test -W localhost:22 Now, the ssh from terminal one and two will exit immediately. The error in terminal 1 is: channel_by_id: 3: bad id: channel free Disconnecting: Received open failure for non-opening channel 3. -- You are receiving this mail because: You are watching the assignee of the bug.
2016 Jan 26
2
Questions about inferred state machines for OpenSSH
Dear all, For my thesis, I've been working on automatic inference of state machines for SSH servers. I ran into a couple of particularities regarding OpenSSH's inferred state machine, and was hoping some of you might be interested. Maybe you can even shed some light on it. Setup: I'm using LearnLib's (Java) version of the L* learning algorithm [1] to come up with sequences of