Welcome to MacForumz.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

SSH Sessions drop after inactivity, new in 10.5.2

 
Goto page Previous  1, 2
   Macintosh computer (Home) -> System RSS
Next:  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 DeleteThis @news.giganews.com>,
Lewis <gkreme DeleteThis @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 DeleteThis @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.DeleteThis@gmail.com> wrote:

> In article <260220082303325943%SallyShears@gmail.com>, Sally Shears
> <SallyShears.DeleteThis@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.DeleteThis@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.DeleteThis@gmail.com -or- Sally.DeleteThis@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:   
Related Topics:
Network inactivity breaks wifi connection - I experience this problem on a MacBook Pro, a MacBook and a new iMac, both with Tiger and Leopard. After a few moment of network inactivity (meaning no email checking, no webpage loading, no ssh command), the WiFi connectivity 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 computer's not called "Vigo...

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

Hardly any rolling sailors are round and other particular .. - are outside -- irrelevant.' '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 happening? 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 10.3.3.and 768 MB RAM installed. 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 deskto...
   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 ]