I have encountered a problem using Openssh-2.1.1p1 on Solaris 2.6 I connect to a remote box with localbox> ssh -X remotebox remotebox> nedit& nedit show up fine I quit nedit ... And now the connection to remotehost dies as well ... running ssh with -v shows the following [...] debug: Requesting pty. debug: Requesting X11 forwarding with authentication spoofing. debug: Requesting shell. debug: Entering interactive session. [...] debug: Received X11 open request. debug: fd 7 setting O_NONBLOCK debug: channel 0: new [X11 connection from remotehost port 50931] [...] debug: channel 0: send data len 32 debug: channel 0: send data len 32 debug: channel 0: send data len 32 debug: channel 0: send data len 512 debug: channel 0: send data len 512 [...] debug: channel 0: rcvd ieof debug: channel 0: output open -> drain debug: channel 0: obuf empty debug: channel 0: output drain -> closed debug: channel 0: send oclose debug: channel 0: close_write debug: channel 0: send data len 384 debug: channel 0: send data len 96 debug: channel 0: read<=0 rfd 7 len 0 debug: channel 0: read failed debug: channel 0: input open -> drain debug: channel 0: close_read debug: channel 0: input: no drain shortcut debug: channel 0: ibuf empty debug: channel 0: input drain -> wait_oclose debug: channel 0: send ieof Connection to tardis closed by remote host. Connection to tardis closed. debug: Transferred: stdin 20, stdout 1224, stderr 75 bytes in 17.0 seconds debug: Bytes per second: stdin 1.2, stdout 72.2, stderr 4.4 debug: Exit status -1 debug: writing PRNG seed to file /home/oetiker/.ssh/prng_seed [...] I found that the problem seems to be restricted to Motif apps ... it does not happen with Xt, Qt or GTK apps cheers tobi -- ______ __ _ /_ __/_ / / (_) Oetiker, Timelord & SysMgr @ EE-Dept ETH-Zurich / // _ \/ _ \/ / TEL: +41(0)1-6325286 FAX:...1517 ICQ: 10419518 /_/ \.__/_.__/_/ oetiker at ee.ethz.ch http://ee-staff.ethz.ch/~oetiker
kengelha at advance-bank.de
2000-Jun-19 10:25 UTC
sshd does not exit after scp (hpux 11.00 / ssh 2.1.1p1)
Hello, I have encountered a problem using ssh-2.1.1p1 on HP-UX 11.00: Everything else seems to work but running scp results in processes staying open: On the server there are 2 processes still running after copying a file: "scp -v -t /tmp" and one sshd. On the client also a ssh-process stays running until killing one of the processes manually... The copying works fine however. I've seen this or similar problems have been reported earlier, but I could not find a solution. If I can provide additional infos please tell me... Thanks, Klaus
Damien Miller
2000-Jun-19 14:03 UTC
sshd does not exit after scp (hpux 11.00 / ssh 2.1.1p1)
On Mon, 19 Jun 2000 kengelha at advance-bank.de wrote:> > > Hello, > > I have encountered a problem using ssh-2.1.1p1 on HP-UX 11.00: > > Everything else seems to work but running scp results in processes > staying open: On the server there are 2 processes still running > after copying a file: "scp -v -t /tmp" and one sshd. On the client > also a ssh-process stays running until killing one of the processes > manually...Can you turn on debugging at the server end (LogLevel DEBUG) and send along the output? Thanks, Damien Miller -- | "Bombay is 250ms from New York in the new world order" - Alan Cox | Damien Miller - http://www.mindrot.org/ | Email: djm at mindrot.org (home) -or- djm at ibs.com.au (work)
kengelha at advance-bank.de
2000-Jun-19 16:10 UTC
sshd does not exit after scp (hpux 11.00 / ssh 2.1.1p1)
Hello, Damien Miller wrote:> Can you turn on debugging at the server end (LogLevel DEBUG) and send > along the output?Yes, here it comes: Jun 19 17:02:33 uxdev05 sshd[3944]: Connection from 185.10.101.174 port 806 Jun 19 17:02:33 uxdev05 sshd[3862]: debug: Forked child 3944. Jun 19 17:01:02 uxdev05 sshd[3925]: debug: tvp!=NULL kid 0 mili 10 Jun 19 17:02:33 uxdev05 above message repeats 2 times Jun 19 17:02:33 uxdev05 sshd[3862]: debug: Seeding random number generator. Jun 19 17:02:33 uxdev05 sshd[3862]: debug: OpenSSL random status is now 1 Jun 19 17:02:33 uxdev05 sshd[3862]: debug: 3 bytes from system calls Jun 19 17:02:33 uxdev05 sshd[3944]: debug: Client protocol version 1.5; client software version OpenSSH-1.2.2 Jun 19 17:02:33 uxdev05 sshd[3944]: debug: Local version string SSH-1.5-OpenSSH_2.1.1 Jun 19 17:02:33 uxdev05 sshd[3944]: debug: Sent 768 bit public key and 1024 bit host key. Jun 19 17:02:33 uxdev05 sshd[3944]: debug: Encryption type: 3des Jun 19 17:02:33 uxdev05 sshd[3944]: debug: Received session key; encryption turned on. Jun 19 17:02:33 uxdev05 sshd[3944]: debug: Installing crc compensation attack detector. Jun 19 17:02:33 uxdev05 sshd[3944]: debug: Starting up PAM with username "root" Jun 19 17:02:33 uxdev05 sshd[3944]: debug: Attempting authentication for root. Jun 19 17:02:34 uxdev05 sshd[3862]: debug: 22 bytes from programs Jun 19 17:02:34 uxdev05 sshd[3862]: debug: OpenSSL random status is now 1 Jun 19 17:02:36 uxdev05 sshd[3944]: debug: PAM Password authentication accepted for user "root" Jun 19 17:02:36 uxdev05 sshd[3944]: Accepted password for ROOT from 185.10.101.174 port 806 Jun 19 17:02:36 uxdev05 sshd[3944]: debug: PAM setting rhost to "n4wm1780" Jun 19 17:02:36 uxdev05 sshd[3944]: debug: session_new: init Jun 19 17:02:36 uxdev05 sshd[3944]: debug: session_new: session 0 Jun 19 17:02:36 uxdev05 sshd[3944]: debug: Exec command 'scp -t /tmp' Jun 19 17:02:36 uxdev05 sshd[3944]: debug: PAM establishing creds Jun 19 17:02:36 uxdev05 sshd[3944]: debug: Entering interactive session. Jun 19 17:02:36 uxdev05 sshd[3944]: debug: fd 10 setting O_NONBLOCK Jun 19 17:02:36 uxdev05 sshd[3944]: debug: fd 12 setting O_NONBLOCK Jun 19 17:02:36 uxdev05 sshd[3944]: debug: server_init_dispatch_13 Jun 19 17:02:36 uxdev05 sshd[3944]: debug: server_init_dispatch_15 Jun 19 17:02:36 uxdev05 sshd[3944]: debug: tvp!=NULL kid 0 mili 10 Jun 19 17:02:36 uxdev05 sshd[3944]: debug: EOF received for stdin. When killing the remaining process on the client, following is added to the servers logfile: Jun 19 17:03:55 uxdev05 sshd[3944]: Connection closed by remote host. Jun 19 17:03:55 uxdev05 sshd[3944]: debug: Calling cleanup 0x40015232(0x0) Jun 19 17:02:36 uxdev05 sshd[3944]: debug: tvp!=NULL kid 0 mili 10 Jun 19 17:03:55 uxdev05 above message repeats 2 times Jun 19 17:03:55 uxdev05 sshd[3944]: pam_setcred: error Permission denied Jun 19 17:03:55 uxdev05 sshd[3944]: Cannot delete credentials: Permission denied Jun 19 17:03:55 uxdev05 sshd[3944]: debug: Calling cleanup 0x400153d2(0x0) Jun 19 17:03:55 uxdev05 sshd[3944]: debug: Calling cleanup 0x400153e2(0x0) Jun 19 17:03:55 uxdev05 sshd[3944]: debug: writing PRNG seed to file /root/.ssh/prng_seed Thanks, Klaus