search for: channel_register_callback

Displaying 3 results from an estimated 3 matches for "channel_register_callback".

2001 Sep 04
3
2.9p2 behaves different from 2.5.2p2 on tunneling issue
Hi, I have a problem with a Linux box which I updated from 2.5.2p2 to 2.9p2 recently. It's running a tunnel started via inittab using a script which starts ssh -2 -N -o 'ConnectionAttempts 3600' -L <tunnel> $host This has run reliable with 2.5.2 over the last months. Now, after I have upgraded to 2.9p2, the tunnel is closed right after each attempt of an application to use
2000 Aug 05
0
Protocol 2 and fork
...ication_flag && buffer_len(&command) == 0) + fatal("Cannot fork into background without a command to execute."); + /* check if RSA support exists */ if ((options.protocol & SSH_PROTO_1) && rsa_alive() == 0) { @@ -979,6 +998,12 @@ channel_open(id); channel_register_callback(id, SSH2_MSG_CHANNEL_OPEN_CONFIRMATION, client_init, (void *)0); + + /* Jarno: hack to get -f working with protocol 2 */ + if (fork_after_authentication_flag) { + if (daemon(1, 1) < 0) + fatal("daemon() failed: %.200s", strerror(errno)); + } return client_loop(tty_flag, tty_flag...
2000 Aug 23
1
Protocol 2 remote forwarding patch
...te_forwards[i].host, + options.remote_forwards[i].host_port); } } @@ -963,7 +1000,9 @@ /* should be pre-session */ init_local_fwd(); - + /* Jarno */ + init_remote_fwd(); + window = 32*1024; if (tty_flag) { packetmax = window/8; @@ -979,6 +1018,12 @@ channel_open(id); channel_register_callback(id, SSH2_MSG_CHANNEL_OPEN_CONFIRMATION, client_init, (void *)0); + + /* Jarno: User wants us to fork */ + if (fork_after_authentication_flag) { + if (daemon(1, 1) < 0) + fatal("daemon() failed: %.200s", strerror(errno)); + } return client_loop(tty_flag, tty_flag ? options.escape...