search for: channel_close_fd

Displaying 20 results from an estimated 40 matches for "channel_close_fd".

Did you mean: channel_close_fds
2002 Feb 01
1
FEATURE: -f -f - fork after successful open of fwd port/display/agent
...t(SSH_CMSG_STDIN_DATA); + packet_put_string("\004", 1); + packet_send(); + /* Close stdin. */ + stdin_eof = 1; + if (buffer_len(&stdin_buffer) == 0) { + packet_start(SSH_CMSG_EOF); + packet_send(); + } + } + + if (detach) { + chan_read_failed(c); + chan_write_failed(c); + channel_close_fds(c); + fd = open(_PATH_DEVNULL, O_RDWR, 0); + if (fd < 0) + return; + (void) dup2(fd, STDIN_FILENO); + (void) dup2(fd, STDOUT_FILENO); + (void) dup2(fd, STDERR_FILENO); + if (fd > 2) + (void) close(fd); + (void) setsid(); + } +} + static void client_input_stdout_data(int type, in...
2002 May 06
2
X11 forwarding does not work as normal user
We installed openssh 3.1p1 on our Solaris 2.8 machine using gcc 2.95.2. During the installation, we modified ssh_config and sshd_config to enable X11 and agent forwarding. In sshd_config, we changed the following line to read: X11Forwarding yes In ssh_config, we changed the following two lines to read: ForwardAgent yes ForwardX11 yes Both files are set to permission readable
2002 Feb 05
0
New forkoff() and chan_wont_read/write() API
...n(&stdin_buffer) == 0) { + packet_start(SSH_CMSG_EOF); + packet_send(); + } + } + + if (!compat20) + return; + + c = channel_lookup(session_ident); + if (c == NULL) + error("couldn't lookup session channel"); + + if (detach) { + chan_wont_read(c); + chan_wont_write(c); + channel_close_fds(c); + fd = open(_PATH_DEVNULL, O_RDWR, 0); + if (fd < 0) + return; + (void) dup2(fd, STDIN_FILENO); + (void) dup2(fd, STDOUT_FILENO); + (void) dup2(fd, STDERR_FILENO); + if (fd > 2) + (void) close(fd); + (void) setsid(); + } +} + static void client_input_stdout_data(int type, in...
2002 Jan 11
1
X11 forwarding, -f, error handling
I'd like a feature whereby ssh puts itself in the background after the first successful X11 (or other port) forwarding. The reason for this is simple: error handling. If the application fails to open the X display and exits, then the client can still exit with the application's exit code. But if the application opens the X display successfully, then it can just display any errors by
2002 Aug 28
0
patch almost works on 5.1A openssh 3.4p1 - get in, but get kicked out (fwd)
.../pts/2 debug1: Calling cleanup 0x12005d934(0x0) Connection closed by remote host. debug1: channel_free: channel 0: server-session, nchannels 2 debug3: channel_free: status: The following connections are open: #0 server-session (t4 r0 i0/0 o0/0 fd 13/12) debug3: channel_close_fds: channel 0: r 13 w 12 e -1 debug1: channel_free: channel 1: X11 inet listener, nchannels 1 debug3: channel_free: status: The following connections are open: debug3: channel_close_fds: channel 1: r 14 w 14 e -1 debug1: session_close: session 0 pid 16039 debug3: mm_req...
2006 Jan 08
3
Allow --without-privsep build.
I've been trying to cut down the size of openssh so I can run it on my Nokia 770. One thing which helps a fair amount (and will help even more when I get '-ffunction-sections -fdata-sections --gc-sections' working) is to have the option of compiling out privilege separation... Is it worth me tidying this up and trying to make it apply properly to the OpenBSD version? Does the openbsd
2003 Apr 30
0
Bad packet length issue
...Item col="0" value="3" /> <colItem col="1" name="Any" type="String" /> <colItem col="2" name="URL3" negate="falsea5d7 d1a9 1940 8416 300b e204 4fbf 5cd7 Disconnecting: Bad packet length 2782384553. debug3: channel_close_fds: channel 0: r 4 w 5 e 6 debug1: Calling cleanup 0x40a890(0x0) debug1: Calling cleanup 0x4138d0(0x0) debug1: channel_free: channel 0: client-session, nchannels 1 debug3: channel_free: status: The following connections are open:\015 #0 client-session (t4 r0 i0/0 o0/5116 fd -1/-1)\015 debug3: chan...
2002 Jun 25
1
PrivSep and AIX 4.3.2
...anup: session 0 release /dev/pts/4 debug3: mm_request_receive entering Connection closed by remote host. debug1: channel_free: channel 0: server-session, nchannels 2 debug3: channel_free: status: The following connections are open: #0 server-session (t4 r0 i0/63 o0/0 fd 10/9) debug3: channel_close_fds: channel 0: r 10 w 9 e -1 debug1: channel_free: channel 1: X11 inet listener, nchannels 1 debug3: channel_free: status: The following connections are open: debug3: channel_close_fds: channel 1: r 11 w 11 e -1 debug1: session_close: session 0 pid 19744 debug3: mm_request_send entering: t...
2001 Feb 22
3
intermittent stderr
The command "ssh ls -l /doesnotexist" gives various responses: Running from a 200 MHz PentiumPro with dsa key added to ssh-agent: Mistakes worst to fast machine: To a faster 600 MHz dual processor i686 600 MHz machine: ls: /doesnotexist: No such file or directory -- correct nothing at all -- wrong ls: select: Bad file descriptor -- wrong
2002 Feb 04
1
forkoff()
...din_eof = 1; if (buffer_len(&stdin_buffer) == 0) { packet_start(SSH_CMSG_EOF); packet_send(); } } if (detach) { /* * There should be a chan_wont_read()/chan_wont_write() * API, differing only in the debug messages used. */ chan_read_failed(c); chan_write_failed(c); channel_close_fds(c); fd = open(_PATH_DEVNULL, O_RDWR, 0); if (fd < 0) return; (void) dup2(fd, STDIN_FILENO); (void) dup2(fd, STDOUT_FILENO); (void) dup2(fd, STDERR_FILENO); if (fd > 2) (void) close(fd); (void) setsid(); } } -- -DISCLAIMER: an automatically appended disclaimer may follow...
2002 Jun 25
10
[Bug 296] Priv separation does not work on OSF/1
http://bugzilla.mindrot.org/show_bug.cgi?id=296 ------- Additional Comments From bugzilla-openssh at thewrittenword.com 2002-06-26 01:20 ------- Are you sure? I have 3.3p1 running on 4.0D and 5.1 and I can connect as non-root. ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.
2001 Jun 20
8
[Lutz.Jaenicke@aet.TU-Cottbus.DE: 2.9p1: HP-UX 10.20 utmp/wtmp handling broken?]
Hi! I am resending the following message about problems with utmp handling. * In the meantime I had some request in private mail from people asking whether I have new information. * The problem is still persistant in 2.9p2. * My own new investigations show, that the problem only appears with protocol 2, not with protocol 1, I therefore only started to note it when protocol 2 became the
2010 Jan 14
1
ssh(1) multiplexing rewrite
...NULL; c->filter_cleanup = NULL; + c->ctl_chan = -1; + c->mux_rcb = NULL; + c->mux_ctx = NULL; c->delayed = 1; /* prevent call to channel_post handler */ TAILQ_INIT(&c->status_confirms); debug("channel %d: new [%s]", found, remote_name); @@ -365,11 +367,10 @@ channel_close_fd(int *fdp) static void channel_close_fds(Channel *c) { - debug3("channel %d: close_fds r %d w %d e %d c %d", - c->self, c->rfd, c->wfd, c->efd, c->ctl_fd); + debug3("channel %d: close_fds r %d w %d e %d", + c->self, c->rfd, c->wfd, c->efd);...
2002 Aug 07
1
Unrelated (was RE: so-called-hang-on-exit)
"ssh -n ..." means ssh will close stdin and open /dev/null for stdin. It does not mean losing th eoutput of ssh. Nico -- > -----Original Message----- > From: Eric Garff [mailto:egarff at omniture.com] > Sent: Wednesday, August 07, 2002 12:11 PM > To: openssh-unix-dev at mindrot.org > Subject: Re: Unrelated (was RE: so-called-hang-on-exit) > > > Sadly, no such
2002 Jun 03
0
[Bug 262] New: ssh fails when run by cron.
...s a simple 'who' on the remote system (running OpenSSH v3.1). The script is: /usr/local/bin/ssh <user at host> "who" When I run it from cron, I get the error: select: No such device or address I turn DEBUG3 on and get the following just before the above error: debug3: channel_close_fds: channel 0: r 6 w 7 e 8 debug1: fd 0 clearing O_NONBLOCK debug1: fd 1 clearing O_NONBLOCK debug2: fd 2 is not O_NONBLOCK It seems to be a file descriptor problem when it is freeing fds. In the crontab, I have tried /usr/bin/ksh and /usr/bin/-ksh. Same thing happens. Have also tried v3.2.2 a...
2006 Nov 01
0
No subject
...fd 9 is O_NONBLOCK^M debug1: Setting controlling tty using TIOCSCTTY.^M Connection closed by remote host.^M debug1: channel_free: channel 0: server-session, nchannels 2^M debug3: channel_free: status: The following connections are open:^M #0 server-session (t4 r0 i0/43 o0/0 fd 10/9)^M ^M debug3: channel_close_fds: channel 0: r 10 w 9 e -1^M debug1: channel_free: channel 1: X11 inet listener, nchannels 1^M debug3: channel_free: status: The following connections are open:^M I tried setting user sshd as a member of group terminals, reseting protection of /dev/pts, etc. Also, when loging in as user root, t...
2002 May 17
16
[Bug 245] SSH can not log out under Solaris 2.6
...s) $ exit logout debug1: client_input_channel_req: channel 0 rtype exit-status reply 0 Hung here until sshd killed debug1: channel_free: channel 0: client-session, nchannels 1 debug3: channel_free: status: The following connections are open: #0 client-session (t4 r0 i0/0 o0/0 fd 5/6) debug3: channel_close_fds: channel 0: r 5 w 6 e 7 Connection to oraadm closed by remote host. Connection to oraadm closed. debug1: Transferred: stdin 0, stdout 0, stderr 75 bytes in 55.7 seconds debug1: Bytes per second: stdin 0.0, stdout 0.0, stderr 1.3 debug1: Exit status 0 Unfortunately, running sshd with -d -d -d does...
2002 Feb 28
4
UseLogin under AIX 4.3.3
Hi, If I enable "UseLogin" under AIX, I get the following message upon login: /dev/pts/2: 3004-004 You must "exec" login from the lowest login shell. The manpage states: "In order to preserve the integrity of the system, only one session at a time is allowed to be logged in to a port. This means that the login command entered from the shell prompt cannot succeed,
2003 Apr 17
0
pam_mkhomedir and priv separation
...y_cleanup: session 0 release /dev/pts/14 debug3: mm_request_receive entering debug1: Calling cleanup 0x8064020(0x0) debug1: channel_free: channel 0: server-session, nchannels 2 debug3: channel_free: status: The following connections are open: #0 server-session (t10 r0 i0/0 o0/0 fd -1/-1) debug3: channel_close_fds: channel 0: r -1 w -1 e -1 debug1: channel_free: channel 1: X11 inet listener, nchannels 1 debug3: channel_free: status: The following connections are open: debug3: channel_close_fds: channel 1: r 14 w 14 e -1 debug1: Calling cleanup 0x80549c0(0x0) debug1: Calling cleanup 0x8071110(0x0) debug1: C...
2013 May 15
1
[PATCH] Expose remote forwarding ports as environment variable
...-6.2p1.patched/: .channels.c.swp diff -ru openssh-6.2p1/channels.h openssh-6.2p1.patched/channels.h --- openssh-6.2p1/channels.h 2012-04-22 03:21:10.000000000 +0200 +++ openssh-6.2p1.patched/channels.h 2013-05-09 23:21:37.385423623 +0200 @@ -222,6 +222,7 @@ void channel_cancel_cleanup(int); int channel_close_fd(int *); void channel_send_window_changes(void); +void channel_list_rport_listener(char *buf, size_t size); /* protocol handler */ diff -ru openssh-6.2p1/session.c openssh-6.2p1.patched/session.c --- openssh-6.2p1/session.c 2013-03-15 01:22:37.000000000 +0100 +++ openssh-6.2p1.patched/sessio...