Displaying 20 results from an estimated 75 matches for "ssh_session2_open".
2006 Jan 16
1
LocalCommand problem for tunneling on Linux
I've been testing tunneling on Linux with openssh-SNAP-20060116.tar.gz
and found a problem.
When I use LocalCommand for doing ifconfig stuff, the command line
was executed before a tunneling interface is opened. This causes
errors on Linux and the interface is not automatically set up.
This is not a problem on *BSD because you can do ifconfig for
unopened tun/tap interfaces. But in Linux,
2002 Oct 08
2
Memory fault on HP-UX 11.0, 3.4p1
...kalg ssh-rsa blen 149 lastkey 400377a0 hint
-1
debug2: input_userauth_pk_ok: fp
7a:44:be:6c:94:18:fb:0c:ff:e5:1a:9a:07:98:a5:27
debug3: sign_and_send_pubkey
debug3: clear_auth_state: key_free 400377a0
debug1: ssh-userauth2 successful: method publickey
debug1: channel 0: new [client-session]
debug3: ssh_session2_open: channel_new: 0
debug1: send channel open 0
Memory fault(coredump)
# ssh -V
OpenSSH_3.4p1, SSH protocols 1.5/2.0, OpenSSL 0x0090607f
HP-UX 11.0 (March 2002 patches)
Thanks,
Eric
2017 Oct 09
5
Why dup()?
Hello all,
My scripts, which read stdout from ssh, weren't seeing EOF from the
remote session.? It was being sent, but lost.? I tracked it down to the
following code, in ssh.c, at ssh_session2_open:
??????? if (stdin_null_flag) {
??????????????? in = open(_PATH_DEVNULL, O_RDONLY);
??????? } else {
??????????????? in = dup(STDIN_FILENO);
??????? }
??????? out = dup(STDOUT_FILENO);
??????? err = dup(STDERR_FILENO);
The remote session did close stdout.? The sshd from which it was spawne...
2011 Oct 26
4
C6: ssh X-forwarding does not work
...rk, xorg-x11-auth rpm is
installed, have checked sshd config for
#X11Forwarding no
X11Forwarding yes
#X11DisplayOffset 10
Here is a verbose ssh logon, I can't see any difference to a working server:
debug1: Authentication succeeded (password).
debug1: channel 0: new [client-session]
debug3: ssh_session2_open: channel_new: 0
debug2: channel 0: send open
debug1: Entering interactive session.
debug2: callback start
debug2: x11_get_proto: /usr/bin/xauth list unix:10.0 2>/dev/null
debug1: Requesting X11 forwarding with authentication spoofing.
debug2: channel 0: request x11-req confirm 0
debug2: client_...
2012 Sep 30
2
User can't use SFTP after chroot
...acket_send2: adding 64 (len 56 padlen 8 extra_pad 64)
debug2: we sent a password packet, wait for reply
debug3: Wrote 144 bytes for a total of 1639
debug1: Authentication succeeded (password).
debug2: fd 4 setting O_NONBLOCK
debug3: fd 5 is O_NONBLOCK
debug1: channel 0: new [client-session]
debug3: ssh_session2_open: channel_new: 0
debug2: channel 0: send open
debug1: Requesting no-more-sessions at openssh.com
debug1: Entering interactive session.
debug3: Wrote 128 bytes for a total of 1767
debug2: callback start
debug2: client_session2_setup: id 0
debug1: Sending environment.
debug3: Ignored env TERM
debug3:...
2020 May 20
0
[Bug 1997] Add QoS to ControlPath escapes
...heir QoS has not
led to a solution (with different hosts being a workaround but IMO not
a well maintainable one), I've run through the sequence and options
with the current versions:
* QoS is still decided after expansion (expansion happens in main; QoS
is set down from there in ssh_session2 / ssh_session2_open /
ssh_session2_setup)
* QoS, unless explicitly configured, is set to interactive based on the
presence of tty_flag || a successful X forwarding.
* tty_flag is set in main based on -t/-T, the presence of a command and
isatty a few lines before the control path expansion.
It should thus be relativel...
2003 Apr 04
1
overload key signing function for opensc tokens...
...key was not using
either overloading. I used the rsa.meth way, instead of the engine.
With this patch ssh-add works. I'm working on getting ssh to take a PIN, but
when I put in a call to read_passphrase in the appropriate place, it muddies
the waters for stdin, I think. I get errors in ssh_session2_open that it
can't 'dup() in/out/err'. It seems as if stdin's been closed? Any fixes?
Thanks,
Kevin Stefanik
-------------- next part --------------
A non-text attachment was scrubbed...
Name: openssh-3.5p1-opensc_sc_sign.patch
Type: text/x-diff
Size: 518 bytes
Desc: not available
Ur...
2003 Aug 22
0
Client does not propagate EPIPE write error to server.
...2 localhost od /bin/ls | true ignore SIGPIPE
Perhaps a slightly more realistic example:
rugolsky at mercury: ssh -vvv -x -n -2 localhost cat /dev/zero | dd count=1
...
debug1: fd 4 setting O_NONBLOCK
debug1: fd 5 setting O_NONBLOCK
debug1: channel 0: new [client-session]
debug3: ssh_session2_open: channel_new: 0
debug1: send channel open 0
debug1: Entering interactive session.
debug2: callback start
debug1: ssh_session2_setup: id 0
debug1: Sending command: cat /dev/zero
debug1: channel request 0: exec
debug2: callback done
debug1: channel 0: open confirm rwindow 0 rm...
2004 Aug 21
1
openssh-unix-dev Digest, Vol 16, Issue 9
...config: config /opt/ssh/etc/sshd_config len 331
ssh:
debug2: input_userauth_info_req
debug2: input_userauth_info_req: num_prompts 0
debug3: packet_send2: adding 48 (len 10 padlen 6 extra_pad 64)
debug1: Authentication succeeded (keyboard-interactive).
debug1: channel 0: new [client-session]
debug3: ssh_session2_open: channel_new: 0
--
Michael
2009 May 24
0
OpenSSH_5.2p1. non-vpn login to root account requests TUN interface and cannot exit
...s ssh requests tun device:
debug1: Authentication succeeded (publickey).
debug1: Requesting tun unit 2147483647 in mode 1
debug1: sys_tun_open: tunnel mode 1 fd 4
debug2: fd 4 setting O_NONBLOCK
debug3: fd 4 is O_NONBLOCK
debug1: channel 0: new [tun]
debug1: channel 1: new [client-session]
debug3: ssh_session2_open: channel_new: 1
debug2: channel 1: send open
and after I exit from shell can not close it:
debug2: channel 1: rcvd eof
debug2: channel 1: output open -> drain
debug2: channel 1: obuf empty
debug2: channel 1: close_write
debug2: channel 1: output drain -> closed
debug1: client_input_channel_...
2011 Aug 26
0
Unable to execute the commands at remote machine after RSA handshake
...I am succeeded to do the password less authonitication but
unable to execute the command and get the command OUTPUT/ERROR
message. Below is the ssh command trace. please let me know what is
the problem:
debug1: Authentication succeeded (publickey).
debug1: channel 0: new [client-session]
debug3: ssh_session2_open: channel_new: 0
debug2: channel 0: send open
debug1: Entering interactive session.
debug2: callback start
debug2: client_session2_setup: id 0
debug1: Sending command: ping -help
debug2: channel 0: request exec confirm 0
debug2: callback done
debug2: channel 0: open confirm rwindow 0 rmax 32768
debu...
2013 Dec 19
0
Trying to compile for OS/2
..."real" ssh on a linux box. But when it comes to interactive terminal both
they, and sftp, fail.
ssh -vvvv shardik (which is a *nix box)
snip snip
debug1: Authentication succeeded (password).
Authenticated to shardik ([192.168.0.1]:22).
debug1: channel 0: new [client-session]
debug3: ssh_session2_open: channel_new: 0
debug2: channel 0: send open
debug1: Entering interactive session.
tcgetattr: Invalid argument
debug2: callback start
debug2: fd 3 setting TCP_NODELAY
debug3: packet_set_tos: set IP_TOS 0x10
debug2: client_session2_setup: id 0
debug2: channel 0: request pty-req confirm 1
debug1: tty...
2019 Mar 29
2
Call for testing: OpenSSH 8.0
...gning using ssh-rsa-cert-v01 at openssh.com
> debug3: send packet: type 50
> debug3: receive packet: type 52
> debug1: Authentication succeeded (publickey).
> Authenticated to our.server.in.the.cloud ([our.ip.in.the.cloud]:4444).
> debug1: channel 0: new [client-session]
> debug3: ssh_session2_open: channel_new: 0
> debug2: channel 0: send open
> debug3: send packet: type 90
> debug1: Requesting no-more-sessions at openssh.com
> debug3: send packet: type 80
> debug1: Entering interactive session.
> debug1: pledge: network
> debug3: receive packet: type 80
> debug1: cli...
2008 Nov 18
1
Axway XFB sftp server & no-more-sessions@openssh.com
...-2.0-OpenSSH_5.1p1+sftpfilecontrol-v1.2-hpn13v5
...
debug1: Authentication succeeded (publickey).
debug2: fd 5 setting O_NONBLOCK
debug2: fd 6 setting O_NONBLOCK
debug1: Final hpn_buffer_size = 2097152
debug1: HPN Disabled: 1, HPN Buffer Size: 2097152
debug1: channel 0: new [client-session]
debug3: ssh_session2_open: channel_new: 0
debug2: channel 0: send open
debug1: Requesting no-more-sessions at openssh.com
debug1: Entering interactive session.
debug2: callback start
debug2: client_session2_setup: id 0
debug1: Sending subsystem: sftp
debug2: channel 0: request subsystem confirm 1
debug2: fd 4 setting TCP_NO...
2007 Aug 03
1
race condition with ControlMaster=auto
...01,7 +1203,9 @@
/* XXX should be pre-session */
ssh_init_forwarding();
- ssh_control_listener();
+ if (!ssh_control_listener(0))
+ fatal("control master socket %s already exists",
+ options.control_path);
if (!no_shell_flag || (datafellows & SSH_BUG_DUMMYCHAN))
id = ssh_session2_open();
@@ -1319,7 +1323,13 @@
switch (options.control_master) {
case SSHCTL_MASTER_AUTO:
case SSHCTL_MASTER_AUTO_ASK:
- debug("auto-mux: Trying existing master");
+ /* see if we can create a control master socket
+ to avoid a race between two auto clients */
+ if (mux_command ==...
2008 Aug 27
1
5.1p1 doesn't work, 5.0p1 works fine
...his is a failed connection ->
debug3: packet_send2: adding 56 (len 61 padlen 11 extra_pad 64)
debug2: we sent a password packet, wait for reply
debug1: Authentication succeeded (password).
debug2: fd 5 setting O_NONBLOCK
debug3: fd 6 is O_NONBLOCK
debug1: channel 0: new [client-session]
debug3: ssh_session2_open: channel_new: 0
debug2: channel 0: send open
debug1: Requesting no-more-sessions at openssh.com
debug1: Entering interactive session.
debug2: callback start
debug2: client_session2_setup: id 0
debug2: channel 0: request pty-req confirm 1
debug3: tty_make_modes: ospeed 38400
debug3: tty_make_modes:...
2023 Jan 25
1
Upstream forwarding test failure
On Wed, 25 Jan 2023 at 19:29, Darren Tucker <dtucker at dtucker.net> wrote:
[...]
> I have a part-done patch that logs the output from all ssh and sshd
> instances to separate datestamped files. I'll see if I can tidy that
> up for you to try
You can grab it from here:
https://github.com/daztucker/openssh-portable/commit/b54b39349e1a64cbbb9b56b0f8b91a35589fb528
It's not
2011 Feb 01
2
Multiple forced commands being executed
...this?
Here's an example of the output I am seeing (condensed, the real
output is ~3000 lines):
OpenSSH_5.2p1, OpenSSL 0.9.8l 5 Nov 2009
debug1: Authentication succeeded (publickey).
debug2: fd 5 setting O_NONBLOCK
debug2: fd 6 setting O_NONBLOCK
debug1: channel 0: new [client-session]
debug3: ssh_session2_open: channel_new: 0
debug2: channel 0: send open
debug1: Requesting no-more-sessions at openssh.com
debug1: Entering interactive session.
debug1: Remote: Forced command: gitosis-serve osjokine
debug1: Remote: Port forwarding disabled.
debug1: Remote: X11 forwarding disabled.
debug1: Remote: Agent forwa...
2008 Apr 15
0
ChrootDirectory - SFTP subsystem works fine but SSH hangs
...P for this account.
Thanks
Simon
The last ouput from the ssh -vvv command is below:-
debug3: packet_send2: adding 48 (len 63 padlen 17 extra_pad 64)
debug2: we sent a password packet, wait for reply
debug1: Authentication succeeded (password).
debug1: channel 0: new [client-session]
debug3: ssh_session2_open: channel_new: 0
debug2: channel 0: send open
debug1: Entering interactive session.
debug2: callback start
debug2: client_session2_setup: id 0
debug2: channel 0: request pty-req confirm 0
debug3: tty_make_modes: ospeed 38400
debug3: tty_make_modes: ispeed 38400
debug3: tty_make_modes: 1 3
debug3: tt...
2004 Jul 14
1
New dynamic window patch (with limits)
..."session", SSH_CHANNEL_OPENING, in, out, err,
window, packetmax, CHAN_EXTENDED_WRITE,
"client-session", /*nonblock*/0);
-
+ if (!tty_flag) {
+ c->dynamic_window = 1;
+ set_unlimited(&c->input,1);
+ set_unlimited(&c->output,1);
+ }
debug3("ssh_session2_open: channel_new: %d", c->self);
channel_send_open(c->self);
Only in openssh-3.8.1p1-dynwindow: ssh_prng_cmds