Displaying 9 results from an estimated 9 matches for "channel_connect_stdio_fwd".
2015 Jun 24
8
[Bug 2416] New: [PATCH] Allow forwarding of stdio to streamlocal end points
https://bugzilla.mindrot.org/show_bug.cgi?id=2416
Bug ID: 2416
Summary: [PATCH] Allow forwarding of stdio to streamlocal end
points
Product: Portable OpenSSH
Version: -current
Hardware: Other
OS: Linux
Status: NEW
Severity: enhancement
Priority: P5
Component: ssh
2011 Oct 13
1
[PATCH] Fix control persist and stdio forward interaction
...011-March/029441.html
there is some strange interaction between ControlPersist and ssh -W that
breaks things if you're using both. Specifically, ssh -W host:port with
ControlPersist enabled opens up two connections to host:port and sends
data from both back.
I think this is happening because channel_connect_stdio_fwd is being
called twice, once in client_setup_stdio_fwd, which is called from
ssh_init_forwarding, and once in process_mux_stdio_fwd, which is
called once the client process starts talking to the master process.
It looks like the way ControlPersist is implemented, the process forks,
with the child b...
2014 Feb 20
1
Regression in 6.5p1 when using -W option
...t>)
at /usr/src/debug/openssh-6.5p1-1/canohost.c:292
#2 0x0000000100418db5 in port_open_helper (c=c at entry=0x600074700,
rtype=rtype at entry=0x10045fe0d <log_facilities+301> "direct-tcpip")
at /usr/src/debug/openssh-6.5p1-1/channels.c:1388
#3 0x000000010041dc07 in channel_connect_stdio_fwd (
host_to_connect=0x600039800 "machine2", port_to_connect=22, in=in at entry=4,
out=5) at /usr/src/debug/openssh-6.5p1-1/channels.c:1269
#4 0x0000000100401566 in ssh_init_stdio_forwarding ()
at /usr/src/debug/openssh-6.5p1-1/ssh.c:1260
#5 0x0000000100454171 in ssh_session2 (...
2014 Feb 12
5
[Bug 2200] New: ssh -W causes "getsockname failed: Bad file descriptor" errors
...as triggered
by the new calls to get_sock_port from port_open_helper in
https://anongit.mindrot.org/openssh.git/commit/?id=4def184; gdb shows
that c->sock is -1 here.
Full -vvv output in the Debian bug; relevant-looking excerpt:
debug3: ssh_init_stdio_forwarding: server2.example.net:22
debug1: channel_connect_stdio_fwd server2.example.net:22
debug1: channel 0: new [stdio-forward]
debug2: fd 4 setting O_NONBLOCK
debug3: fd 5 is O_NONBLOCK
getsockname failed: Bad file descriptor
debug1: getpeername failed: Bad file descriptor
It looks like it still works fine, but the extra non-debug error is
annoying.
--
You ar...
2011 Oct 16
4
[Bug 1943] New: [PATCH] ssh -W opens two connections when ControlPersist is enabled.
...011-March/029441.html
there is some strange interaction between ControlPersist and ssh -W
that
breaks things if you're using both. Specifically, ssh -W host:port
with
ControlPersist enabled opens up two connections to host:port and sends
data from both back.
I think this is happening because channel_connect_stdio_fwd is being
called twice, once in client_setup_stdio_fwd, which is called from
ssh_init_forwarding, and once in process_mux_stdio_fwd, which is
called once the client process starts talking to the master process.
It looks like the way ControlPersist is implemented, the process forks,
with the child b...
2016 May 31
7
[Bug 2577] New: Port Forwarding on Proxy with ProxyCommand ssh -W does not work / bad file descriptor
...target
Port 22
User user
IdentityFile ~/.ssh/user-target_ed25519
ssh target/remote
(check ss -lant4 in second terminal: no listener on port 1080)
(exit ssh session)
cat sshpc.log
[...]
Authenticated to my.dynamicdns.com ([12.34.56.78]:2222).
debug3: ssh_init_stdio_forwarding: router:22
debug1: channel_connect_stdio_fwd router:22
debug1: channel 0: new [stdio-forward]
debug2: fd 4 setting O_NONBLOCK
debug2: fd 5 setting O_NONBLOCK
debug1: getpeername failed: Bad file descriptor
debug3: send packet: type 90
debug2: fd 3 setting TCP_NODELAY
debug3: ssh_packet_set_tos: set IP_TOS 0x10
debug1: Requesting no-more-sessi...
2015 Jul 18
2
How to ssh to a server via an intermediate server with X11 forwarding?
On Sun, Jul 5, 2015 at 3:26 AM, Damien Miller <djm at mindrot.org> wrote:
> On Sat, 4 Jul 2015, Peng Yu wrote:
>
>> I tried the following command.
>>
>> ssh -Y -t intermediate -- ssh -Y dest
>>
>> But it shows the following error message. Does anybody know how to fix
>> the problem? Thanks.
>
> ssh -oProxyCommand="ssh -W %h:%p
2010 Jan 28
1
Possible issue with stdio forwarding
...2_MSG_IGNORE
debug1: Server accepts key: pkalg ssh-rsa blen 533
debug2: input_userauth_pk_ok: fp 46:bb:2a:c2:29:72:ad:bc:a7:04:c8:8d:77:31:6f:5e
debug3: sign_and_send_pubkey
debug3: Received SSH2_MSG_IGNORE
debug1: Authentication succeeded (publickey).
debug3: client_setup_stdio_fwd cfe1:22
debug1: channel_connect_stdio_fwd cfe1:22
debug1: channel 0: new [stdio-forward]
debug2: fd 4 setting O_NONBLOCK
debug2: fd 5 setting O_NONBLOCK
debug1: getpeername failed: Bad file descriptor
debug1: Entering interactive session.
debug3: Received SSH2_MSG_IGNORE
channel 0: open failed: connect failed: No description
debug2: channe...
2017 Jun 16
2
[PATCH] allow relative path in streamlocal forwarding
...rint_adm_permitted_opens(void);
Channel *channel_connect_to_port(const char *, u_short, char *, char *, int *,
const char **);
-Channel *channel_connect_to_path(const char *, char *, char *);
+Channel *channel_connect_to_path(const char *, char *, char *, struct ForwardOptions *);
Channel *channel_connect_stdio_fwd(const char*, u_short, int, int);
Channel *channel_connect_by_listen_address(const char *, u_short,
char *, char *);
diff --git a/misc.h b/misc.h
index c242f90..99341f6 100644
--- a/misc.h
+++ b/misc.h
@@ -38,6 +38,7 @@ struct ForwardOptions {
int gateway_ports; /* Allow remote connects t...