Welcome to MacForumz.com!
FAQFAQ   SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log in/Register/PasswordLog in/Register/Password

SSH Sessions drop after inactivity, new in 10.5.2

 
Goto page Previous  1, 2
   Macintosh computer (Home) -> System RSS
Related Topics:
Network inactivity breaks wifi connection - I this problem on a MacBook Pro, a MacBook and a new iMac, both with Tiger and Leopard. After a few moment of network (meaning no email checking, no webpage loading, no ssh command), the WiFi of these computers stop...

"Vigor2" prefix on Terminal sessions - I've just noticed that when I start a terminal session (with any terminal app), the command line is prefixed with a weird Vigor2 notation, like this: Vigor2:~ ben$ where I'd expect it to be something like just ben$ My not called

Nested remote desktop sessions are causing problems - Hello, I am quite new to the macintosh platform in general. I am a System for both a UNIX and Windows and have been stuck to XP and Redhat for my desktop XP has many features that I have grown used to and..

Hardly any rolling sailors are round and other particular .. - are outside -- 'I don't care. In the end they will beat you. Sooner or later they will see you for what you are, and then they will tear you to pieces.' 'Do you see any evidence that that is Or any reason why it..

Folders won't drag and drop in OS 10.3.3 - I have a two month old iMac with OS 768 MB RAM I've recently changed from shutting down at night to letting the compouter sleep instead. Last weekend I noticed that half way into my usual evening's 'puting, the folders on the desktop..
Next:  System: Programs get bent when external disk spins down  
Author Message
Greg Pratt

External


Since: Feb 11, 2005
Posts: 21



(Msg. 16) Posted: Wed Mar 05, 2008 11:31 pm
Post subject: Re: SSH Sessions drop after inactivity, new in 10.5.2 [Login to view extended thread Info.]
Archived from groups: comp>sys>mac>system (more info?)

In article <gkreme-6F8282.22292927022008.RemoveThis@news.giganews.com>,
Lewis <gkreme.RemoveThis@gmail.com> wrote:
>It was dead simple, all I did was edit the /etc/ssh_config (not
>sshd_config)
>
>and add these lines:
>
>ServerAliveInterval 60
>TCPKeepAlive yes

While this should work, you may wish to make those changes in
~/.ssh/config, not /etc/ssh_config. Files in /etc are subject to
being overwritten by Mac OS X updates. When ssh is invoked, it runs
/etc/ssh_config first, and then ~/.ssh/config; anything explicitly set
in the latter (your own personal setting) will supersede the former.

--
Gregory Pratt gp.RemoveThis@panix.com
East Rutherford, NJ, USA http://www.panix.com/~gp/
"You're only given one little spark of madness. You mustn't lose it."
PGP Key Fingerprint: DC60 FCDE 91E2 3D41 91A3 45DB B474 3D3A 3621 AAFE

 >> Stay informed about: SSH Sessions drop after inactivity, new in 10.5.2 
Back to top
Login to vote
sallyshears

External


Since: Nov 21, 2004
Posts: 112



(Msg. 17) Posted: Wed Mar 26, 2008 9:51 am
Post subject: Re: SSH Sessions drop after inactivity, new in 10.5.2 [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

In article <280220081633131357%SallyShears@gmail.com>, Sally Shears
<SallyShears RemoveThis @gmail.com> wrote:

> In article <260220082303325943%SallyShears@gmail.com>, Sally Shears
> <SallyShears RemoveThis @gmail.com> wrote:
>
> > I have just encountered a new behavior in 10.5.2
> >
> > I run Terminal on my Mac and have several SSH sessions going with Linux
> > hosts. These are command-line terminal sessions (not X windows), for
> > example
> >
> > ssh username RemoveThis @host.domain.com
> >
> > .. and I keep an SSH tunnel open to one server.
>
> The resolution...
....snip...
> Reinstallation of 10.5.1 (archive and install) and then applying the
> updates solved all the problems.

And, it's back... SSH sessions drop after 10 minutes of inactivity.

Seems to happen after or on a trip, where I'm changing "Location" in
the Apple menu, using hotel and airport connections (where you login
with a web browser). Also had one complete freeze-up when changing
from WiFi to ethernet. I sense trouble in changing network connections
in 10.5.2.

Will get more data with ssh -v, ssh -v -v

Thanks for all the pointers.

-- Sally

--
Sally Shears (a.k.a. "Molly")
SallyShears RemoveThis @gmail.com -or- Sally RemoveThis @Shears.org
SallyShears (at) gmail (dot) com

 >> Stay informed about: SSH Sessions drop after inactivity, new in 10.5.2 
Back to top
Login to vote
sallyshears

External


Since: Nov 21, 2004
Posts: 112



(Msg. 18) Posted: Wed Mar 26, 2008 12:47 pm
Post subject: Re: SSH Sessions drop after inactivity, new in 10.5.2 [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

In article <260320080951553765%SallyShears@gmail.com>, Sally Shears
<SallyShears.TakeThisOut@gmail.com> wrote:

> In article <280220081633131357%SallyShears@gmail.com>, Sally Shears
> <SallyShears.TakeThisOut@gmail.com> wrote:
>
> > In article <260220082303325943%SallyShears@gmail.com>, Sally Shears
> > <SallyShears.TakeThisOut@gmail.com> wrote:
> >
> > > I have just encountered a new behavior in 10.5.2
> > >
> > > I run Terminal on my Mac and have several SSH sessions going with Linux
> > > hosts. These are command-line terminal sessions (not X windows), for
> > > example
> > >
> > > ssh username.TakeThisOut@host.domain.com
> > >
> > > .. and I keep an SSH tunnel open to one server.
> >
> > The resolution...
> ...snip...
> > Reinstallation of 10.5.1 (archive and install) and then applying the
> > updates solved all the problems.
>
> And, it's back... SSH sessions drop after 10 minutes of inactivity.
>
> Seems to happen after or on a trip, where I'm changing "Location" in
> the Apple menu, using hotel and airport connections (where you login
> with a web browser). Also had one complete freeze-up when changing
> from WiFi to ethernet. I sense trouble in changing network connections
> in 10.5.2.

More...

Trying to get debugging info with ssh -v -v -v username.TakeThisOut@host.com...
Nothing interesting. SSH connections drop after 10 minutes.

Rebooting the machine makes the problem go away.

Anyone else seeing
- ssh sessions drop after 10 minutes
- after changing network connections, e.g. using Apple... Location to
change network connection

TIA.

-- Sally

--
Sally Shears (a.k.a. "Molly")
SallyShears.TakeThisOut@gmail.com -or- Sally.TakeThisOut@Shears.org
SallyShears (at) gmail (dot) com
 >> Stay informed about: SSH Sessions drop after inactivity, new in 10.5.2 
Back to top
Login to vote
Display posts from previous:   
   Macintosh computer (Home) -> System All times are: Pacific Time (US & Canada) (change)
Goto page Previous  1, 2
Page 2 of 2

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]