search for: channel_setup_fwd_listener_tcpip

Displaying 7 results from an estimated 7 matches for "channel_setup_fwd_listener_tcpip".

2015 May 30
2
FWD: enable forwarding to remote named sockets in ssh
...Index: channels.c =================================================================== RCS file: /cvs/src/usr.bin/ssh/channels.c,v retrieving revision 1.336 diff -u -p -r1.336 channels.c --- channels.c 15 Jul 2014 15:54:14 -0000 1.336 +++ channels.c 8 Aug 2014 20:31:29 -0000 @@ -2771,13 +2770,18 @@ channel_setup_fwd_listener_tcpip(int typ fwd->listen_host : fwd->connect_host; is_client = (type == SSH_CHANNEL_PORT_LISTENER); - if (host == NULL) { - error("No forward host name."); - return 0; - } - if (strlen(host) >= NI_MAXHOST) { - error("Forward host name too long."); - return 0;...
2019 May 31
9
[Bug 3017] New: ExitOnForwardFailure=yes doesn't work for local forwards (-L)
https://bugzilla.mindrot.org/show_bug.cgi?id=3017 Bug ID: 3017 Summary: ExitOnForwardFailure=yes doesn't work for local forwards (-L) Product: Portable OpenSSH Version: 7.6p1 Hardware: Other OS: Linux Status: NEW Severity: normal Priority: P5 Component: ssh
2020 Sep 21
4
Call for testing: OpenSSH 8.4
On Mon, 21 Sep 2020 at 09:53, Hisashi T Fujinaka <htodd at twofifty.com> wrote: > OK, NetBSD-current amd64, NetBSD-9-amd64, and NetBSD-9-i386 all pass all > tests. MacOS, well, I always try it but it has problems. What's the problem on OS X? We test on it regularly (El Capitan and High Sierra) and the only problem I'm aware of is that the native libcrypto on High Sierra is
2016 Apr 03
6
[Bug 2562] New: CanonicalizeHostname causes duplicate LocalForward attempts
...8000. debug1: channel 1: new [port listener] debug1: Local connections to localhost:8000 forwarded to remote address localhost:80 debug1: Local forwarding listening on ::1 port 8000. bind: Address already in use debug1: Local forwarding listening on 127.0.0.1 port 8000. bind: Address already in use channel_setup_fwd_listener_tcpip: cannot listen to port: 8000 Could not request local forwarding. Disabling CanonicalizeHostname results in a single set of port forwarding actions and success: mghali at ernie.int.snark.net:~$ ssh -v -F tmp/config -o 'CanonicalizeHostname no' mini OpenSSH_7.1p1, OpenSSL 1.0.1j 15 Oct 2014...
2017 Jan 02
12
[Bug 2659] New: Fix race conditions in forwarding tests
https://bugzilla.mindrot.org/show_bug.cgi?id=2659 Bug ID: 2659 Summary: Fix race conditions in forwarding tests Product: Portable OpenSSH Version: 7.4p1 Hardware: Other OS: Linux Status: NEW Severity: enhancement Priority: P5 Component: Regression tests Assignee:
2016 Dec 31
2
Baffling regress/forwarding.sh failure, new in 7.4p1
...SH2. debug2: fd 7 setting O_NONBLOCK debug2: fd 8 setting O_NONBLOCK debug1: server_init_dispatch debug3: receive packet: type 80 debug1: server_input_global_request: rtype tcpip-forward want_reply 1 debug1: server_input_global_request: tcpip-forward listen localhost port 3302 debug3: channel_setup_fwd_listener_tcpip: type 11 wildcard 0 addr NULL debug1: Local forwarding listening on 127.0.0.1 port 3302. debug2: fd 9 setting O_NONBLOCK debug3: fd 9 is O_NONBLOCK debug1: channel 0: new [port listener] debug3: send packet: type 81 packet_write_wait: Connection from 127.0.0.1 port 60879: Broken pipe...
2017 Jun 16
2
[PATCH] allow relative path in streamlocal forwarding
...shd.c | 25 ++++++++++++ sshd_config.5 | 11 +++++- 11 files changed, 260 insertions(+), 11 deletions(-) create mode 100644 regress/streamlocal.sh diff --git a/channels.c b/channels.c index 028d5db..97561e0 100644 --- a/channels.c +++ b/channels.c @@ -2996,6 +2996,59 @@ channel_setup_fwd_listener_tcpip(int type, struct Forward *fwd, return success; } +/* Expands a relative socket path to the absolute path, from the given + * root directory. */ +static char * +expand_relative_socket_path(const char *pathname, const char *root_directory) +{ + char *ret, *cp; + struct stat st; + + if (*pathname...