Re: Disabling ssh timeouts?

2009-05-13 Thread Anthony M. Rasat
Steve Kargl wrote:
I'm trying to running the GCC testsuite, which is not an 
interactive job.  Once it starts, it writes to stdout when
an error occurs or the testsuite moves to a new major

I think you'd better use screen. First, ssh to your machine, start screen 
without any parameter, then start your tests. You can leave ssh afterwards. 
Your test will continue to run within your session.

To continue your last session, just ssh again to that machine and:

screen -r -x

Hopefully answers your question.

-- 

Regards,

Anthony M. Rasat
Manager - Technical, Network and Support Division
PT. Jawa Pos National Network
Graha Pena Jawa Pos Group Building, 5th floor
Jln. Raya Kebayoran Lama 12, Jakarta Selatan 12210
Indonesia.-
Phone 02132185562
Phone 081574217035
Fax 02153651465
Web http://www.jpnn.com

*
***  Hai, saya virus. Tolong contreng saya.  
*
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Disabling ssh timeouts?

2009-05-13 Thread Wojciech Puchar


Read from remote host troutmask.apl.washington.edu: Connection reset by peer
Connection to troutmask.apl.washington.edu closed.

The only way I'v efound to complete a run of the GCC testsuite
is to sit at the terminal and hit enter every so often.  Also


there is screen program.


note, nohup and backgrounding the job does not inhibit sshd


no idea, network problems??
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Disabling ssh timeouts?

2009-05-13 Thread Chris Rees
2009/5/13 Wojciech Puchar woj...@wojtek.tensor.gdynia.pl:

 Read from remote host troutmask.apl.washington.edu: Connection reset by
 peer
 Connection to troutmask.apl.washington.edu closed.

 The only way I'v efound to complete a run of the GCC testsuite
 is to sit at the terminal and hit enter every so often.  Also

 there is screen program.


2009/5/13 Anthony M. Rasat anthony.ra...@gmail.com:
 Steve Kargl wrote:
I'm trying to running the GCC testsuite, which is not an
interactive job.  Once it starts, it writes to stdout when
an error occurs or the testsuite moves to a new major

 I think you'd better use screen. First, ssh to your machine, start screen 
 without any parameter, then start your tests. You can leave ssh afterwards. 
 Your test will continue to run within your session.

 To continue your last session, just ssh again to that machine and:

 screen -r -x

 Hopefully answers your question.

Why have three separate people suggested screen?

PLEASE, read the previous posts before repeating what's already there!

Chris

-- 
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Disabling ssh timeouts?

2009-05-13 Thread Uwe Laverenz

Steve Kargl schrieb:


Is there anyway to disable sshd from timing out a connection?
I've tried setting  ClientAliveCountMax and ClientAliveInterval
and TCPKeepAlive in sshd.conf, but no combination that I've
tried has worked.


Possibly it's not ssh that closes the connection. Are there any routers 
between your machine and the remote one? If this is the case it could be 
one of the routers that has a low timeout for recognizing a connection 
as alive. This happens especially if NAT is used, because the router 
has to keep a table of ip:port pairs for each connection. This should 
happen only if there is no traffic on the connection within this timeout 
limit.


Uwe

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Disabling ssh timeouts?

2009-05-13 Thread Tim Judd
On Tue, May 12, 2009 at 11:29 PM, Steve Kargl 
s...@troutmask.apl.washington.edu wrote:

 On Tue, May 12, 2009 at 11:14:26PM -0600, Tim Judd wrote:
  On Tue, May 12, 2009 at 11:03 PM, Steve Kargl 
  s...@troutmask.apl.washington.edu wrote:
 
   Is there anyway to disable sshd from timing out a connection?
   I've tried setting  ClientAliveCountMax and ClientAliveInterval
   and TCPKeepAlive in sshd.conf, but no combination that I've
   tried has worked.
  
  
   Read from remote host troutmask.apl.washington.edu: Connection reset
 by
   peer
   Connection to troutmask.apl.washington.edu closed.
  
   The only way I'v efound to complete a run of the GCC testsuite
   is to sit at the terminal and hit enter every so often.  Also
   note, nohup and backgrounding the job does not inhibit sshd
   dropping the connection and losing all testsuite results.
  
 
  I had this problem at a hotel recently.  I think it was the router saying
  stale connection here, cut it off..  Only way around it I got to work
 was
  setting PuTTY (Win32 app) connection keepalive to some value (I used 90
  seconds).
 
  Is your ISP or gateway one that actively and annoyingly cleans up stale
  connections?

 The ISP is comcast.net.  As long as I'm doing something
 interactively over the net, comcast.net doesn't time
 out the connection.  The system resetting the connection
 is my system at work.  It is my work system that I want
 to disable sshd's reset feature.

 --
 Steve



As I said before, it could also be the gateway at the client, or the gateway
at the server.  I was making the change on a client to keep it active, so
check your /etc/ssh/ssh_config


I have cisco routers that would potentially do it too, and it's all about
the config.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Disabling ssh timeouts?

2009-05-13 Thread Trevor S. Cornpropst
On Tue, 12 May 2009 22:03:33 -0700
Steve Kargl s...@troutmask.apl.washington.edu wrote:

 Is there anyway to disable sshd from timing out a connection?
 I've tried setting  ClientAliveCountMax and ClientAliveInterval
 and TCPKeepAlive in sshd.conf, but no combination that I've
 tried has worked.
 
 I'm trying to running the GCC testsuite, which is not an 
 interactive job.  Once it starts, it writes to stdout when
 an error occurs or the testsuite moves to a new major
 test category.  The last few lines of output are 
 
 Running target unix
 Using /usr/X11R6/share/dejagnu/baseboards/unix.exp as board
 description file for target.
 Using /usr/X11R6/share/dejagnu/config/unix.exp as generic interface
 file for target.
 Using /usr/home/sgk/gcc/gcc4x/gcc/testsuite/config/default.exp as
 tool-and-target-specific interface file.
 Running /usr/home/sgk/gcc/gcc4x/gcc/testsuite/gfortran.dg/debug/debug.exp ...
 Running /usr/home/sgk/gcc/gcc4x/gcc/testsuite/gfortran.dg/dg.exp ...
 
 Read from remote host troutmask.apl.washington.edu: Connection reset
 by peer Connection to troutmask.apl.washington.edu closed.
 
 The only way I'v efound to complete a run of the GCC testsuite
 is to sit at the terminal and hit enter every so often.  Also
 note, nohup and backgrounding the job does not inhibit sshd
 dropping the connection and losing all testsuite results.
 

If you are a csh/tcsh user, you can also 'unset autologout' in your
shell and see if that helps.

Trevor
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Disabling ssh timeouts?

2009-05-13 Thread Jose Garcia Juanino
El miércoles 13 de mayo a las 07:03:33 CEST, Steve Kargl escribió:
 Is there anyway to disable sshd from timing out a connection?
 I've tried setting  ClientAliveCountMax and ClientAliveInterval
 and TCPKeepAlive in sshd.conf, but no combination that I've
 tried has worked.
 
 [ ... ]

 Running /usr/home/sgk/gcc/gcc4x/gcc/testsuite/gfortran.dg/dg.exp ...
 
 Read from remote host troutmask.apl.washington.edu: Connection reset by peer
 Connection to troutmask.apl.washington.edu closed.
 
 The only way I'v efound to complete a run of the GCC testsuite
 is to sit at the terminal and hit enter every so often.  Also
 note, nohup and backgrounding the job does not inhibit sshd
 dropping the connection and losing all testsuite results.

I have fixed that problems with ServerAliveInterval option. Give it a
try:

ssh -o ServerAliveInterval 60 -l user host

(screen is a goog idea, as other people have pointed out, but sometimes
it is not posible to install programs on the server)

Best regards


pgpbisLSG699F.pgp
Description: PGP signature


Re: Disabling ssh timeouts?

2009-05-13 Thread Steve Kargl
On Wed, May 13, 2009 at 04:54:33PM +0200, Jose Garcia Juanino wrote:
 El miércoles 13 de mayo a las 07:03:33 CEST, Steve Kargl escribió:
  Is there anyway to disable sshd from timing out a connection?
  I've tried setting  ClientAliveCountMax and ClientAliveInterval
  and TCPKeepAlive in sshd.conf, but no combination that I've
  tried has worked.
  
 
  Running /usr/home/sgk/gcc/gcc4x/gcc/testsuite/gfortran.dg/dg.exp ...
  
  Read from remote host troutmask.apl.washington.edu: Connection reset by peer
  Connection to troutmask.apl.washington.edu closed.
  
  The only way I'v efound to complete a run of the GCC testsuite
  is to sit at the terminal and hit enter every so often.  Also
  note, nohup and backgrounding the job does not inhibit sshd
  dropping the connection and losing all testsuite results.
 
 I have fixed that problems with ServerAliveInterval option. Give it a
 try:
 
 ssh -o ServerAliveInterval 60 -l user host
 
 (screen is a goog idea, as other people have pointed out, but sometimes
 it is not posible to install programs on the server)
 

Thanks for the tip about ServerAliveInterval.

Also, thanks, everyone for the tip about screen.

-- 
Steve
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Disabling ssh timeouts?

2009-05-13 Thread Jose Garcia Juanino
El miércoles 13 de mayo a las 17:26:10 CEST, Steve Kargl escribió:
 On Wed, May 13, 2009 at 04:54:33PM +0200, Jose Garcia Juanino wrote:
  El miércoles 13 de mayo a las 07:03:33 CEST, Steve Kargl escribió:
   Is there anyway to disable sshd from timing out a connection?
   I've tried setting  ClientAliveCountMax and ClientAliveInterval
   and TCPKeepAlive in sshd.conf, but no combination that I've
   tried has worked.
   
  
   Running /usr/home/sgk/gcc/gcc4x/gcc/testsuite/gfortran.dg/dg.exp ...
   
   Read from remote host troutmask.apl.washington.edu: Connection reset by 
   peer
   Connection to troutmask.apl.washington.edu closed.
   
   The only way I'v efound to complete a run of the GCC testsuite
   is to sit at the terminal and hit enter every so often.  Also
   note, nohup and backgrounding the job does not inhibit sshd
   dropping the connection and losing all testsuite results.
  
  I have fixed that problems with ServerAliveInterval option. Give it a
  try:
  
  ssh -o ServerAliveInterval 60 -l user host
  
  (screen is a goog idea, as other people have pointed out, but sometimes
  it is not posible to install programs on the server)
  
 
 Thanks for the tip about ServerAliveInterval.
 
 Also, thanks, everyone for the tip about screen.

A last tip, if ServerAliveInterval does not work as expected:

$ ssh -l user host
$ gccCompilation  /tmp/gccCompilation.log 21  /dev/null

At this point, it would be possible to exit from the ssh session with
exit or CTRL+D. Yo only must to guaranteed this process will not
output anything to stdout, and will not read anything from stdin.

Best regards


pgp9yBjH0PkMU.pgp
Description: PGP signature


Re: Disabling ssh timeouts?

2009-05-13 Thread Chad Perrin
On Tue, May 12, 2009 at 10:43:40PM -0700, Josh Carroll wrote:
 On Tue, May 12, 2009 at 10:03 PM, Steve Kargl
 s...@troutmask.apl.washington.edu wrote:
  Is there anyway to disable sshd from timing out a connection?
  I've tried setting  ClientAliveCountMax and ClientAliveInterval
  and TCPKeepAlive in sshd.conf, but no combination that I've
  tried has worked.
 
 My suggestion would be to install and use the screen port:
 
 /usr/ports/sysutils/screen

. . . or my personal favorite terminal multiplexer, tmux:

  /usr/ports/misc/tmux

From the pkg-descr file:

Tmux is a terminal multiplexer, it enables a number of terminals to be 
accessed
and controlled from a single terminal. tmux is intended to be a simple, 
modern,
BSD-licensed alternative to programs such as GNU screen.


 
 You can then start the test suite run, detach from the screen session,
 then ssh in and re-attach to the screen session later to check up on
 it.

-- 
Chad Perrin [ original content licensed OWL: http://owl.apotheon.org ]
Quoth Larry Wall: Just don't create a file called -rf.


pgpb30wbo0nP2.pgp
Description: PGP signature


Re: Disabling ssh timeouts?

2009-05-13 Thread Chad Perrin
On Wed, May 13, 2009 at 08:26:10AM -0700, Steve Kargl wrote:
 
 Also, thanks, everyone for the tip about screen.

Don't forget tmux.

-- 
Chad Perrin [ original content licensed OWL: http://owl.apotheon.org ]
Quoth Colin McFadyen: Unix is not an 'a-ha' experience, it is more of a
'holy-shit' experience.


pgpYIUsuSZvfM.pgp
Description: PGP signature


Re: Disabling ssh timeouts?

2009-05-12 Thread Chuck Robey
Steve Kargl wrote:
 Is there anyway to disable sshd from timing out a connection?
 I've tried setting  ClientAliveCountMax and ClientAliveInterval
 and TCPKeepAlive in sshd.conf, but no combination that I've
 tried has worked.
 
 I'm trying to running the GCC testsuite, which is not an 
 interactive job.  Once it starts, it writes to stdout when
 an error occurs or the testsuite moves to a new major
 test category.  The last few lines of output are 
 
 Running target unix
 Using /usr/X11R6/share/dejagnu/baseboards/unix.exp as board description file 
 for target.
 Using /usr/X11R6/share/dejagnu/config/unix.exp as generic interface file for 
 target.
 Using /usr/home/sgk/gcc/gcc4x/gcc/testsuite/config/default.exp as 
 tool-and-target-specific interface file.
 Running /usr/home/sgk/gcc/gcc4x/gcc/testsuite/gfortran.dg/debug/debug.exp ...
 Running /usr/home/sgk/gcc/gcc4x/gcc/testsuite/gfortran.dg/dg.exp ...
 
 Read from remote host troutmask.apl.washington.edu: Connection reset by peer
 Connection to troutmask.apl.washington.edu closed.
 
 The only way I'v efound to complete a run of the GCC testsuite
 is to sit at the terminal and hit enter every so often.  Also
 note, nohup and backgrounding the job does not inhibit sshd
 dropping the connection and losing all testsuite results.
 

Just saw this answer recently, I forget where, but you set the TCPKeepAlive on,
I think that's in /etc/ssh/sshd_config.  I liked that one, because in retrospect
it's obvious (not so obvious when you need it, but it does make sense now).
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Disabling ssh timeouts?

2009-05-12 Thread Steve Kargl
On Wed, May 13, 2009 at 01:15:48AM -0400, Chuck Robey wrote:
 Steve Kargl wrote:
  Is there anyway to disable sshd from timing out a connection?
  I've tried setting  ClientAliveCountMax and ClientAliveInterval
  and TCPKeepAlive in sshd.conf, but no combination that I've
  tried has worked.
  
 
 Just saw this answer recently, I forget where, but you set the
 TCPKeepAlive on, I think that's in /etc/ssh/sshd_config.  I liked
 that one, because in retrospect it's obvious (not so obvious when
 you need it, but it does make sense now).

Thanks, Chuck.

I thought I tried that option.  Perhaps, I set it on the
worng system.  I'll go check my config files.

-- 
Steve
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Disabling ssh timeouts?

2009-05-12 Thread Josh Carroll
On Tue, May 12, 2009 at 10:03 PM, Steve Kargl
s...@troutmask.apl.washington.edu wrote:
 Is there anyway to disable sshd from timing out a connection?
 I've tried setting  ClientAliveCountMax and ClientAliveInterval
 and TCPKeepAlive in sshd.conf, but no combination that I've
 tried has worked.

My suggestion would be to install and use the screen port:

/usr/ports/sysutils/screen

You can then start the test suite run, detach from the screen session,
then ssh in and re-attach to the screen session later to check up on
it.

Regards,
Josh
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org