Displaying 8 results from an estimated 8 matches for "server_init_dispatch".
2001 Oct 31
2
suggested fix for the sigchld race
...=========================================================
RCS file: /home/markus/cvs/ssh/serverloop.c,v
retrieving revision 1.82
diff -u -r1.82 serverloop.c
--- serverloop.c 10 Oct 2001 22:18:47 -0000 1.82
+++ serverloop.c 11 Oct 2001 18:06:33 -0000
@@ -92,6 +92,45 @@
/* prototypes */
static void server_init_dispatch(void);
+/*
+ * we write to this pipe if a SIGCHLD is caught in order to avoid
+ * the race between select() and child_terminated
+ */
+static int notify_pipe[2];
+static void
+notify_setup(void)
+{
+ if (pipe(notify_pipe) < 0) {
+ error("pipe(notify_pipe) failed %s", strerror(errno)...
2001 Aug 27
1
scp1 issue
...KEY
CMSG_USER
CMSG_AUTH_PASSWORD
CMSG_EXEC_CMD
And wait for SMSG_STDOUT_DATA until SMSG_EXITSTATUS.
I have read the scp.c code and and it more or less just starts
ssh with the command "scp -f file-to-get", however when I do that in a
little client i made it just hangs after sshd does its
server_init_dispatch()
debug1: session_new: init
debug1: session_new: session 0
debug1: Exec command 'scp -f .profile'
debug1: PAM establishing creds
debug1: Entering interactive session.
debug1: fd 7 setting O_NONBLOCK
debug1: fd 7 IS O_NONBLOCK
debug1: fd 9 setting O_NONBLOCK
debug1: server_init_dispatch_13...
2000 Aug 13
1
Patches for openssh port forwarding
...erverloop.c Sun Aug 13 14:06:06 2000
@@ -58,6 +58,9 @@
static volatile int child_has_selected; /* Child has had chance to drain. */
static volatile int child_wait_status; /* Status from wait(). */
+/* Jarno: Needed to check if port_forwarding is allowed */
+extern ServerOptions options;
+
void server_init_dispatch(void);
void
@@ -722,7 +725,10 @@
originator, originator_port, target, target_port);
/* XXX check permission */
- if (no_port_forwarding_flag) {
+ /* Jarno: */
+ if (no_port_forwarding_flag || !options.port_forwarding) {
+ packet_send_debug("Server configuration rejects port forwar...
2016 Dec 31
2
Baffling regress/forwarding.sh failure, new in 7.4p1
...trace: config file: transfer over forwarded channels and check result
dWCUHL3hrO9Sb+pyo0ZTZvaU
debug3: notify_hostkeys: sent 2 hostkeys
debug3: send packet: type 80
debug1: Entering interactive session for SSH2.
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...
2017 Oct 10
3
tunnel device name acquisition?
Numerous how-tos all over the Internet show how one would set up
a tunnel using ssh, e.g.:
ssh -f -o Tunnel=ethernet <server_ip> true
I was wondering if there's a way to subsequently acquire the names
of the local and remote tun/tap interfaces (e.g., using the default
"-w any:any") for subsequent automatic tunnel configuration, e.g.:
ip link set $TapDev up
ip link set
2023 Jun 30
1
Subsystem sftp invoked even though forced command created
On 30/06/2023 09:56, Damien Miller wrote:
> It's very hard to figure out what is happening here without a debug log.
>
> You can get one by stopping the listening sshd and running it manually
> in debug mode, e.g. "/usr/sbin/sshd -ddd"
Or starting one in debug mode on a different port, e.g. "-p99 -ddd"
2020 Jul 07
3
libssh2 is hanging during a file transfert
...OTO sshd[19553]: debug3: send packet: type 4
Jul 7 11:52:16 TOTO sshd[19553]: debug1: Entering interactive session for
SSH2.
Jul 7 11:52:16 TOTO sshd[19553]: debug2: fd 7 setting O_NONBLOCK
Jul 7 11:52:16 TOTO sshd[19553]: debug2: fd 9 setting O_NONBLOCK
Jul 7 11:52:16 TOTO sshd[19553]: debug1: server_init_dispatch
Jul 7 11:52:16 TOTO sshd[19553]: debug3: receive packet: type 90
Jul 7 11:52:16 TOTO sshd[19553]: debug1: server_input_channel_open: ctype
session rchan 0 win 2097152 max 32768
Jul 7 11:52:16 TOTO sshd[19553]: debug1: input_session_request
Jul 7 11:52:16 TOTO sshd[19553]: debug1: channel 0: new...
2019 Mar 27
26
Call for testing: OpenSSH 8.0
Hi,
OpenSSH 8.0p1 is almost ready for release, so we would appreciate testing
on as many platforms and systems as possible.
Snapshot releases for portable OpenSSH are available from
http://www.mindrot.org/openssh_snap/
The OpenBSD version is available in CVS HEAD:
http://www.openbsd.org/anoncvs.html
Portable OpenSSH is also available via git using the
instructions at