SSH quirk...

2003-03-23 Thread Ashley M. Kirchner
   One thing I've noticed since day one and never really bothered with 
it, although now I wonder  If I ssh to any of my servers, execute an 
init script restart (or stop, start), then exit, the remote ssh process 
never quits.  I have to kill the actual process from where I ssh-ed from 
(or presumably the remote process would produce the same effect):

   [ server-1 ] -- ssh into -- [ server-2 ]

   In this scenario, say I execute any restart command, rndc, sendmail, 
nfs, anything, then type exit, it just hangs.  server-2 never issues a 
connection close or anything.  I have a log in from a second terminal to 
server-1 and kill the ssh process that goes to server-2 (or log onto 
server-2 from a different terminal and kill the process.)

   It doesn't matter what server I'm ssh FROM nor TO (I have about 10 
of them,) it happens consistently on all of them.

   All machines are running RH7.3, with the following openssh packages 
installed:

   # rpm -qa | grep openssh
   openssh-3.1p1-6
   openssh-clients-3.1p1-6
   openssh-server-3.1p1-6
   Has anyone noticed this?

--
H| I haven't lost my mind; it's backed up on tape somewhere.
 +
 Ashley M. Kirchner mailto:[EMAIL PROTECTED]   .   303.442.6410 x130
 IT Director / SysAdmin / WebSmith . 800.441.3873 x130
 Photo Craft Laboratories, Inc.. 3550 Arapahoe Ave. #6
 http://www.pcraft.com . .  ..   Boulder, CO 80303, U.S.A. 



--
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list


Re: SSH quirk...

2003-03-23 Thread nate
Ashley M. Kirchner said:

 In this scenario, say I execute any restart command, rndc, sendmail,
 nfs, anything, then type exit, it just hangs.

yes I have noticed this from time to time. It's quite rare for me,
but does happen. Haven't investigated much yet myself. quite odd,
I usually run ssh with debugging (-v) and it too hangs, no debug
output when logging out in such situations. pain in the ass sometimes,
luckily it does not seem to affect any of my scripts that do automated
ssh actions.

at first I thought it may of been due to ssh having trouble closing
any sockets that are forwarding for X. but after looking at my debug
logs it shows that is probably not the case.

most of my systems are debian, I can't remember if I've experienced
the problem on a debian-debian system specifically but I think I have.


nate





-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list


Re: [RH List] Re: SSH quirk...

2003-03-23 Thread Ashley M. Kirchner
nate wrote:

yes I have noticed this from time to time. It's quite rare for me,
but does happen. Haven't investigated much yet myself. quite odd,
 

   Okay, I'm not going crazy then.  For me it only happens whenever I 
execute some restart (or stop/start) init script.  Any other time I can 
log in and out just fine.  It almost seems as if ssh expects whatever 
process you started to quit or something.  Like it won't exit if there's 
something tied to it.  Bizarre.

--
H| I haven't lost my mind; it's backed up on tape somewhere.
 +
 Ashley M. Kirchner mailto:[EMAIL PROTECTED]   .   303.442.6410 x130
 IT Director / SysAdmin / WebSmith . 800.441.3873 x130
 Photo Craft Laboratories, Inc.. 3550 Arapahoe Ave. #6
 http://www.pcraft.com . .  ..   Boulder, CO 80303, U.S.A. 





--
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list


Re: SSH quirk...

2003-03-23 Thread Cameron Simpson
On 14:28 23 Mar 2003, Ashley M. Kirchner [EMAIL PROTECTED] wrote:
| nate wrote:
| yes I have noticed this from time to time. It's quite rare for me,
| but does happen. Haven't investigated much yet myself. quite odd,
|Okay, I'm not going crazy then.  For me it only happens whenever I 
| execute some restart (or stop/start) init script.  Any other time I can 
| log in and out just fine.  It almost seems as if ssh expects whatever 
| process you started to quit or something.  Like it won't exit if there's 
| something tied to it.  Bizarre.

If you're dicking with an ethernet interface or firewall rules
it can cut your connection off from the RST packet, so your ssh
connection never sees the drop of the connection, just silence.
-- 
Cameron Simpson, DoD#743[EMAIL PROTECTED]http://www.zip.com.au/~cs/

Uhlmann's Razor: When stupidity is a sufficient explanation, there is no need
 to have recourse to any other.
- Michael M. Uhlmann, assistant attorney general
  for legislation in the Ford Administration



-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list


Re: SSH quirk...

2003-03-23 Thread Ashley M. Kirchner
Cameron Simpson wrote:

If you're dicking with an ethernet interface or firewall rules
it can cut your connection off from the RST packet, so your ssh
connection never sees the drop of the connection, just silence.
   Well DUH.  Obviously.  smirk

   If you go back to my original message, you'll see that I said this 
happens with *any* script.

--
H| I haven't lost my mind; it's backed up on tape somewhere.
 +
 Ashley M. Kirchner mailto:[EMAIL PROTECTED]   .   303.442.6410 x130
 IT Director / SysAdmin / WebSmith . 800.441.3873 x130
 Photo Craft Laboratories, Inc.. 3550 Arapahoe Ave. #6
 http://www.pcraft.com . .  ..   Boulder, CO 80303, U.S.A. 





--
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list


Re: SSH quirk...

2003-03-23 Thread Rick Johnson
Ashley M. Kirchner wrote:
   One thing I've noticed since day one and never really bothered with 
it, although now I wonder  If I ssh to any of my servers, execute an 
init script restart (or stop, start), then exit, the remote ssh process 
never quits.  I have to kill the actual process from where I ssh-ed from 
(or presumably the remote process would produce the same effect):

   [ server-1 ] -- ssh into -- [ server-2 ]

   In this scenario, say I execute any restart command, rndc, sendmail, 
nfs, anything, then type exit, it just hangs.  server-2 never issues a 
connection close or anything.  I have a log in from a second terminal to 
server-1 and kill the ssh process that goes to server-2 (or log onto 
server-2 from a different terminal and kill the process.)

   It doesn't matter what server I'm ssh FROM nor TO (I have about 10 of 
them,) it happens consistently on all of them.

   All machines are running RH7.3, with the following openssh packages 
installed:

   # rpm -qa | grep openssh
   openssh-3.1p1-6
   openssh-clients-3.1p1-6
   openssh-server-3.1p1-6
   Has anyone noticed this?
I've noticed this on machines where the services attaches itself to your 
/dev/pts/## session. Until the process is restarted or the SSH session 
is remotely killed, the session will remain open. VSFTPd (standalone 
from RawHide) and webmin are two services off the top of my head that 
will do this guarenteed.

-Rick
--
Rick Johnson, RHCE #807302311706007 - [EMAIL PROTECTED]
Linux/Network Administrator - Medata, Inc. (from home)
PGP Public Key: https://mail.medata.com/pgp/rjohnson.asc


--
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list