search for: session_pty_req

Displaying 20 results from an estimated 67 matches for "session_pty_req".

2011 Feb 10
1
Behaviour of OpenSSH while login as root and non-root account
...to enforce one more layer of authentication. For that I need terminal ID in close_session() and pam_sm_setcred() function in PAM module while OpenSSH hardcoded it "ssh". I made few changes in OpenSSh code so it can set terminal ID properly. These changes were : added do_pam_set_tty() in session_pty_req(Session *s) function in session.c and added do_pam_set_tty() in mm_pty_allocate() function in monitor_wrap.c It works fine for root and I get appropriate tty in pam_sm_cred() and pam_sm_close_session() function. But using same code, when I try to ssh through a non root account I am getting tty in...
2010 Jan 14
9
[Bug 1698] New: Connection stalls on PTY allocation failure
...id 0 PTY allocation request failed on channel 0 debug2: channel 0: rcvd adjust 2097152 debug2: channel_input_confirm: type 99 id 0 debug2: shell request accepted on channel 0 Server side log: Jan 14 14:40:09 www sshd[50855]: error: openpty: Permission denied Jan 14 14:40:09 www sshd[50855]: error: session_pty_req: session 0 alloc failed -- I traced down this to session.c:session_pty_req: if (no_pty_flag) { debug("Allocating a pty not permitted for this authentication."); return 0; } if (s->ttyfd != -1) { packet_disconnec...
2005 Jun 08
2
Error when allocating PTY
...ebug1: server_input_channel_open: confirm session debug1: server_input_channel_req: channel 0 request pty-req reply 0 debug1: session_by_channel: session 0 channel 0 debug1: session_input_channel_req: session 0 req pty-req debug1: Allocating pty. debug1: Received SIGCHLD. openpty: Exec format error session_pty_req: session 0 alloc failed debug1: server_input_channel_req: channel 0 request shell reply 0 debug1: session_by_channel: session 0 channel 0 debug1: session_input_channel_req: session 0 req shell debug1: Received SIGCHLD. Perhaps some of you can give me a hint or even had the same problem and can tel...
2006 Sep 10
2
Corrupted MAC problem on PSOS platform
...bug: session_open: session 0: link with channel 0 debug: server_input_channel_open: confirm session debug: server_input_channel_req: channel 0 request pty-req reply 1 debug: session_by_channel: session 0 channel 0 debug: session_input_channel_req: session 0 req pty-req debug: Allocating pty. debug: session_pty_req: session 0 alloc debug: server_input_channel_req: channel 0 request shell reply 1 debug: session_by_channel: session 0 channel 0 debug: session_input_channel_req: session 0 req shell Secure shell client connected Secure shell client disconnected debug: channel 0: free: server-session, nchannels 1 d...
2003 Nov 03
1
Problems with PAM and PermitRootLogin without-password
...ession_open: session 0: link with channel 0 debug1: server_input_channel_open: confirm session debug1: server_input_channel_req: channel 0 request pty-req reply 0 debug1: session_by_channel: session 0 channel 0 debug1: session_input_channel_req: session 0 req pty-req debug1: Allocating pty. debug1: session_pty_req: session 0 alloc /dev/pts/1 debug1: server_input_channel_req: channel 0 request shell reply 0 debug1: session_by_channel: session 0 channel 0 debug1: session_input_channel_req: session 0 req shell debug1: PAM: setting PAM_TTY to "/dev/pts/1" debug1: PAM: establishing credentials debug1: S...
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
2009 Feb 07
0
Patch to 5.1p1 : Log X11 forwarding
...sion_setup_x11fwd(s); if (!success) { @@ -2246,6 +2247,7 @@ { int success = 0; Session *s; + const char *host = NULL; if ((s = session_by_channel(c->self)) == NULL) { logit("session_input_channel_req: no session %d req %.100s", @@ -2267,6 +2269,10 @@ success = session_pty_req(s); } else if (strcmp(rtype, "x11-req") == 0) { success = session_x11_req(s); + if (success) { + host = get_canonical_hostname(options.use_dns); + verbose("X11 forwarding for %s to %s", s->pw->pw_name, host); + } } else if (strcmp(rtype, "auth-a...
2001 Oct 10
1
LynxOS: ssh client hang on exit?
...bug1: session_new: session 0 debug1: session_open: channel 0 debug1: session_open: session 0: link with channel 0 debug1: server_input_channel_open: confirm session debug1: session_by_channel: session 0 channel 0 debug1: session_input_channel_req: session 0 channel 0 request pty-req reply 0 debug1: session_pty_req: session 0 alloc /dev/ttyp1 debug1: session_by_channel: session 0 channel 0 debug1: session_input_channel_req: session 0 channel 0 request x11-req reply 0 debug1: X11 forwarding disabled in server configuration file. debug1: session_by_channel: session 0 channel 0 debug1: session_input_channel_req:...
2002 Jun 11
0
[Bug 273] sshd hangs on shell exit if user spawned child with /bin/nohup
...a.mindrot.org/show_bug.cgi?id=273 ------- Additional Comments From kerry.schwab at wnco.com 2002-06-12 06:26 ------- Debug output, with comments: Get this once i'm in: >>[some omitted for brevity] >>debug1: session_new: session 0 >>debug1: Allocating pty. >>debug1: session_pty_req: session 0 alloc /dev/pts/12 >>debug1: fd 4 setting TCP_NODELAY >>debug1: Entering interactive session. >>debug1: fd 7 setting O_NONBLOCK >>debug1: fd 10 setting O_NONBLOCK >>debug1: fd 11 setting O_NONBLOCK >>debug1: server_init_dispatch_13 >>debug1: serve...
2002 Oct 05
1
a patch for 3.4, please
Hello all, I'd greatly appreciate a patch that will stop PAM mucking around after I log in with a Kerberos 4 ticket and forward an AFS ticket (KTH Kerberos 1.1.1 used for libkrb/libkafs). The trouble is, I need pam_krb4, so that folks, who log in with without tickets using tunnelled plaintext password, would get Kerberos 4 tickets for the box. I rebuilt sshd without PAM in order to verify
2003 Nov 20
0
Question on function order
Could anyone point me to some information on why in HP-UX do_setusercontext() is called after log_getlastlog() and session_pty_req() but before on other things? It is making my chroot patch not behave correctly and I'd like to fix that. -James
2004 Aug 27
0
Terminal modes
...itor_read: checking request 25 debug3: mm_answer_pty entering debug1: session_new: init debug1: session_new: session 0 debug3: mm_request_send entering: type 26 debug3: Trying to reverse map address 10.4.1.27. debug3: mm_answer_pty: tty /dev/pts/3 ptyfd 4 debug3: mm_request_receive entering debug1: session_pty_req: session 0 alloc /dev/pts/3 debug3: tty_parse_modes: SSH2 n_bytes 21 debug3: tty_parse_modes: 53 0 debug3: tty_parse_modes: 54 0 debug3: tty_parse_modes: 55 0 debug3: tty_parse_modes: 56 0 debug1: server_input_channel_req: channel 0 request shell reply 1 debug1: session_by_channel: session 0 channe...
2004 Aug 31
0
Terminal mode (repost)
...itor_read: checking request 25 debug3: mm_answer_pty entering debug1: session_new: init debug1: session_new: session 0 debug3: mm_request_send entering: type 26 debug3: Trying to reverse map address 10.4.1.27. debug3: mm_answer_pty: tty /dev/pts/3 ptyfd 4 debug3: mm_request_receive entering debug1: session_pty_req: session 0 alloc /dev/pts/3 debug3: tty_parse_modes: SSH2 n_bytes 21 debug3: tty_parse_modes: 53 0 debug3: tty_parse_modes: 54 0 debug3: tty_parse_modes: 55 0 debug3: tty_parse_modes: 56 0 debug1: server_input_channel_req: channel 0 request shell reply 1 debug1: session_by_channel: session 0 channe...
2005 Jun 08
0
Error when allocating PTY - supplement
...of sshd: > > debug1: server_input_channel_req: channel 0 request pty-req reply 0 > debug1: session_by_channel: session 0 channel 0 > debug1: session_input_channel_req: session 0 req pty-req > debug1: Allocating pty. > debug1: Received SIGCHLD. > openpty: Exec format error > session_pty_req: session 0 alloc failed > debug1: server_input_channel_req: channel 0 request shell reply 0 > debug1: session_by_channel: session 0 channel 0 > debug1: session_input_channel_req: session 0 req shell > debug1: Received SIGCHLD. > > Perhaps some of you can give me a hint or even ha...
2003 Sep 25
3
openssh 3.7.1p2 afs/pam issues
I've been trying to get a working version of openssh-3.7.1p2 as well. Unfortunately, afs support has been pulled, and the patch posted on the openafs list coredumps when I compile it. The new way that pam is done also introduces errors since pam_authenticate is supposedly called in a seperate thread so that the correct environmental variables are not passed. Even after applying some changes
2005 Apr 27
1
openssh-3.6.1p2 server did not accept user connection.
...og_openseek: Couldn't open /var/log/lastlog: Permission denied Apr 27 09:34:02 jasmine sshd[3176]: debug1: Allocating pty. Apr 27 09:34:02 jasmine sshd[3174]: debug1: session_new: init Apr 27 09:34:02 jasmine sshd[3174]: debug1: session_new: session 0 Apr 27 09:34:03 jasmine sshd[3176]: debug1: session_pty_req: session 0 alloc /dev/pts/17 Apr 27 09:34:03 jasmine sshd[3176]: debug1: server_input_channel_req: channel 0 request shell reply 1 Apr 27 09:34:03 jasmine sshd[3176]: debug1: session_by_channel: session 0 channel 0 Apr 27 09:34:03 jasmine sshd[3176]: debug1: session_input_channel_req: session 0 req...
2001 Jan 30
3
dsa_verify signature incorrect
I am building version 2.3.0p1 of openssh on a UnixWare 2.03 system and am unable to connect with SSH 2. The error I get is: debug: len 55 datafellows 0 debug: dsa_verify: signature incorrect dsa_verify failed for server_host_key The build environment is as follows: gcc 2.95.1 openssl-0.9.6-beta2 I've looked through the archives and found similar problems related to version
2013 Oct 20
29
[Bug 2163] New: unchecked returned value from pam_get_item()
https://bugzilla.mindrot.org/show_bug.cgi?id=2163 Bug ID: 2163 Summary: unchecked returned value from pam_get_item() Product: Portable OpenSSH Version: -current Hardware: All OS: All Status: NEW Severity: minor Priority: P5 Component: PAM support Assignee: unassigned-bugs at
2001 Jan 10
1
SSH2/1 Failure when using bash shell, other shells work
...t debug1: session_new: session 0 debug1: session_open: channel 0 debug1: session_open: session 0: link with channel 0 debug1: confirm session debug2: callback start debug1: session_by_channel: session 0 channel 0 debug1: session_input_channel_req: session 0 channel 0 request pty-req reply 1 debug1: session_pty_req: session 0 alloc /dev/pts/4 debug2: callback done debug2: callback start debug1: session_by_channel: session 0 channel 0 debug1: session_input_channel_req: session 0 channel 0 request shell reply 1 debug1: PAM setting tty to "/dev/pts/4" debug1: PAM establishing creds debug1: fd 7 setting...
2008 Oct 16
2
5.1p on RHEL 3 and password expiration
...ug1: server_input_global_request: rtype no-more-sessions at openssh.com want_reply 0 debug1: server_input_channel_req: channel 0 request pty-req reply 1 debug1: session_by_channel: session 0 channel 0 debug1: session_input_channel_req: session 0 req pty-req debug1: Allocating pty. debug1: session_pty_req: session 0 alloc /dev/pts/2 debug3: tty_parse_modes: SSH2 n_bytes 256 debug3: tty_parse_modes: ospeed 38400 debug3: tty_parse_modes: ispeed 38400 debug1: server_input_channel_req: channel 0 request shell reply 1 debug1: session_by_channel: session 0 channel 0 debug1: session_input_chann...