Displaying 8 results from an estimated 8 matches for "ssh2_msg_channel_request".
2017 Oct 04
5
X11forwarding yes: how to debug/setup after xauth fix
I do not often use X11 - but when I do I prefer to enable X11forwarding,
and when finished - turn it off. This is preferable, imho, to having
"clear" X11 processing when local - and otherwise impossible when
working remote.
Working with openssh-7.5p2 I cannot figure out what (extra) I need to do
with sshd_config to get it working.
I know that there is a security-fix starting with
2017 Oct 12
2
X11forwarding yes: how to debug/setup after xauth fix
...T)
> ...
> Incoming packet #0x9, type 91 / 0x5b (SSH2_MSG_CHANNEL_OPEN_CONFIRMATION)
> ? 00000000? 00 00 01 00 00 00 00 00 00 00 00 00 00 00 80 00
> ................
> Event Log: Opened main channel
> Event Log: Requesting X11 forwarding
> Outgoing packet #0x9, type 98 / 0x62 (SSH2_MSG_CHANNEL_REQUEST)
> ? 00000000? 00 00 00 00 00 00 00 07 78 31 31 2d 72 65 71 01
> ........x11-req.
> ? 00000010? 00 00 00 00 12 4d 49 54 2d 4d 41 47 49 43 2d 43
> .....MIT-MAGIC-C
> ? 00000020? 4f 4f 4b 49 45 2d 31 XX XX XX XX XX XX XX XX XX
> OOKIE-1XXXXXXXXX
> ? 00000030? XX XX XX XX XX XX...
2001 Oct 29
0
signal messages
...);
@@ -899,6 +928,18 @@
xxx_kex->done = 0;
kex_send_kexinit(xxx_kex);
need_rekeying = 0;
+ }
+ if (send_signal == 2) {
+ send_signal = 0;
+ signame = sig2name(received_signal);
+ debug("Sending SIG%s to the remote host.",
+ signame);
+ packet_start(SSH2_MSG_CHANNEL_REQUEST);
+ packet_put_int(session_ident);
+ packet_put_cstring("signal");
+ packet_put_char(0);
+ packet_put_cstring(signame);
+ packet_send();
}
}
Index: session.c
===================================================================
RCS file: /cvs/src/usr.bin/ssh/session....
2011 Oct 02
4
Information on command execution in sshd
Hi,
I was going through the code of open ssh server part ( code for sshd ). My query is when user gives any command ( for example unix command "ls")
in the console ( after ssh login is complete ), which function in sshd will execute this command. I traced that the command is coming to sshd code
in message type SSH2_MSG_CHANNEL_DATA. There is a check using function packet_check_eom().
2002 Jan 31
4
signal transmission in ssh2
...);
@@ -899,6 +928,18 @@
xxx_kex->done = 0;
kex_send_kexinit(xxx_kex);
need_rekeying = 0;
+ }
+ if (send_signal == 2) {
+ send_signal = 0;
+ signame = sig2name(received_signal);
+ debug("Sending SIG%s to the remote host.",
+ signame);
+ packet_start(SSH2_MSG_CHANNEL_REQUEST);
+ packet_put_int(session_ident);
+ packet_put_cstring("signal");
+ packet_put_char(0);
+ packet_put_cstring(signame);
+ packet_send();
}
}
Index: session.c
===================================================================
RCS file: /cvs/src/usr.bin/ssh/session....
2001 Feb 10
3
Protocol 2 remote forwarding patch
...t;Server configuration rejects port forwardings.");
+ debug("Port forwarding disabled in server configuration.");
xfree(target);
xfree(originator);
return -1;
@@ -836,6 +838,7 @@
dispatch_set(SSH2_MSG_CHANNEL_OPEN_FAILURE, &channel_input_open_failure);
dispatch_set(SSH2_MSG_CHANNEL_REQUEST, &channel_input_channel_request);
dispatch_set(SSH2_MSG_CHANNEL_WINDOW_ADJUST, &channel_input_window_adjust);
+ dispatch_set(SSH2_MSG_GLOBAL_REQUEST, &channel_server_global_request);
}
void
server_init_dispatch_13()
diff -ru openssh.orig/ssh.c openssh/ssh.c
--- openssh.orig/ssh.c T...
2000 Aug 23
1
Protocol 2 remote forwarding patch
...ee(originator);
return -1;
+#ifndef DISABLE_FORWARDING
}
+#endif /* DISABLE_FORWARDING */
+
sock = channel_connect_to(target, target_port);
xfree(target);
xfree(originator);
@@ -819,6 +830,7 @@
dispatch_set(SSH2_MSG_CHANNEL_OPEN_FAILURE, &channel_input_open_failure);
dispatch_set(SSH2_MSG_CHANNEL_REQUEST, &channel_input_channel_request);
dispatch_set(SSH2_MSG_CHANNEL_WINDOW_ADJUST, &channel_input_window_adjust);
+ dispatch_set(SSH2_MSG_GLOBAL_REQUEST, &channel_server_global_request);
}
void
server_init_dispatch_13()
@@ -833,7 +845,7 @@
dispatch_set(SSH_MSG_CHANNEL_DATA, &chan...
2001 Oct 24
2
disable features
...ITH_TCPFWD
static void
server_input_global_request(int type, int plen, void *ctxt)
{
@@ -953,6 +958,7 @@
}
xfree(rtype);
}
+#endif
static void
server_init_dispatch_20(void)
@@ -968,7 +974,9 @@
dispatch_set(SSH2_MSG_CHANNEL_OPEN_FAILURE, &channel_input_open_failure);
dispatch_set(SSH2_MSG_CHANNEL_REQUEST, &channel_input_channel_request);
dispatch_set(SSH2_MSG_CHANNEL_WINDOW_ADJUST, &channel_input_window_adjust);
+#ifdef WITH_TCPFWD
dispatch_set(SSH2_MSG_GLOBAL_REQUEST, &server_input_global_request);
+#endif
/* client_alive */
dispatch_set(SSH2_MSG_CHANNEL_FAILURE, &server_in...