Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
exiting from a terminal running ssh doesn't always work
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
HomerSimpson
l33t
l33t


Joined: 25 Jan 2003
Posts: 869
Location: Ohio, USA

PostPosted: Wed Feb 18, 2004 9:33 pm    Post subject: exiting from a terminal running ssh doesn't always work Reply with quote

I connect to my headless systems through gnome-terminal and ssh using this command
Code:
gnome-terminal -t Wendy -x ssh -c blowfish -X -l root root@wendy
When I am done I type exit. Sometimes the terminal closes (which is what I would expect) but sometimes it doesn't close. It is not a real problem for me to close the terminal by closing the terminal window but I want to make sure that there isn't something wrong with my setup that causes this.

Thx
_________________
The strong must protect the Sweet.
Back to top
View user's profile Send private message
meowsqueak
Veteran
Veteran


Joined: 26 Aug 2003
Posts: 1549
Location: New Zealand

PostPosted: Wed Feb 18, 2004 9:59 pm    Post subject: Reply with quote

Same thing happens here when ssh'ing to a Gentoo box. Ssh'ing to my Debian box never has this problem.
Back to top
View user's profile Send private message
db_404
Guru
Guru


Joined: 05 Dec 2002
Posts: 336

PostPosted: Wed Feb 18, 2004 10:05 pm    Post subject: Reply with quote

I've seen something like this too, for me it seems to happen most often when I have background jobs still running on the (p)tty, even if I have nohupped/disowned the jobs. Could something similar be happening in your situation?

Not sure what the solution is though (if any).
Back to top
View user's profile Send private message
Earthwings
Bodhisattva
Bodhisattva


Joined: 14 Apr 2003
Posts: 7753
Location: Germany

PostPosted: Wed Feb 18, 2004 10:39 pm    Post subject: Reply with quote

same here, but it's not related to background jobs and happens with debian (or different) servers being the other part, too.
Back to top
View user's profile Send private message
HomerSimpson
l33t
l33t


Joined: 25 Jan 2003
Posts: 869
Location: Ohio, USA

PostPosted: Wed Feb 18, 2004 10:51 pm    Post subject: Reply with quote

meowsqueak wrote:
Same thing happens here when ssh'ing to a Gentoo box. Ssh'ing to my Debian box never has this problem.


Actually it happens most often when I ssh into my Debian server.

For example, I run
Code:
gnome-terminal -t Allison -x ssh -c blowfish -l root root@Allison

I have ssh-agent running and it has cached my key so I get in automatically when running that command.

I look at a log file
Code:
nano /opt/tss2_rc2/server.log
I exit nano. Sitting at the prompt I type
Code:
exit
and the terminal seems to hang. What normally happens is the terminal window closes automatically. I don't know if something is wrong and that is why the terminal is not closing or this is just something that happens from time to time and nothing is really wrong.

Thx
_________________
The strong must protect the Sweet.
Back to top
View user's profile Send private message
michael-reilly
n00b
n00b


Joined: 20 Sep 2003
Posts: 9

PostPosted: Thu Feb 19, 2004 4:51 am    Post subject: Reply with quote

I recall this coming up on an SSH list a couple of times in the past.

It is a long standing bug in SSH which the SSH developers have declined to fix..

I fixed it myself awhile back on my OpenBSD machine but never bothered to fix it on my gentoo systems. The OpenBSD machine is gone (forced to upgrade the hardware by my company) so I no longer have the fix I put in.
Back to top
View user's profile Send private message
HomerSimpson
l33t
l33t


Joined: 25 Jan 2003
Posts: 869
Location: Ohio, USA

PostPosted: Thu Feb 19, 2004 1:12 pm    Post subject: Reply with quote

OK. Thx. It is not a big deal for me and since it is a bug in ssh and not something wrong with my setup then I will keep on closing the window manually an not worry about it.

Thx for the replies all
_________________
The strong must protect the Sweet.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum