LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-15-2010, 01:34 PM   #1
SciSteve
LQ Newbie
 
Registered: Dec 2009
Posts: 13

Rep: Reputation: 0
ssh timing out


I'm working remotely on a laptop from my home and attempting to run a job that takes a fair amount of time to run, problem is while it runs if I leave the computer the connection times out. I've looked up common solutions to this problem such as adding certain things to ssh_config and the sshd_config files but nothing has worked. Anyone able to help?
 
Old 05-15-2010, 02:01 PM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,817

Rep: Reputation: 610Reputation: 610Reputation: 610Reputation: 610Reputation: 610Reputation: 610
use nohup to start the command so that it doesn't die when you log out?

enable keepalives?

get a better Internet?
 
Old 05-18-2010, 07:09 PM   #3
SciSteve
LQ Newbie
 
Registered: Dec 2009
Posts: 13

Original Poster
Rep: Reputation: 0
Pretty sure my internet connection is fine.
nohup doesn't have any affect.
I've added TCPKeepAlive and ServerAliveInterval to ssh_config
Also have added ClientAliveInterval & CountMax to sshd_config
but helps my issue.

I run a job, that up to this point hasn't ever completely run, due to a:
"Read from remote host xxxx.xxxx.xx: Connection Timed out
Connection to xxxx.xxxx.xx closed."

Even when I'm sitting at the computer, and the system itself doesn't go idle at all.

Anything that anyone knows to get around this and get this job to finish???
 
Old 05-18-2010, 07:40 PM   #4
brainz1977
LQ Newbie
 
Registered: Aug 2008
Posts: 4

Rep: Reputation: 1
Hi,

i'd agree with the nohup suggestion say if you're untarring a large file you can leave it to run on the remote server without you needing to be connected.

eg if youre running:

tar -zxvf big_file.tar.gz

then type the following in instead:


nohup tar -zxvf big_file.tar.gz &


(note the & at the end - this puts the job into the background)


alternatively you could try the screen program, not used it myself but i think it should do the job theres an excellent article here im just havin a read of myself

http://www.linuxforums.org/articles/...rogram_55.html

HTH
 
Old 05-18-2010, 07:55 PM   #5
SciSteve
LQ Newbie
 
Registered: Dec 2009
Posts: 13

Original Poster
Rep: Reputation: 0
The thing about my issue is that my computer only allows me access to a server, everything the job needs to run, and all files are located through the connection to this server, and once it times out everything gets canceled and the job does not get done. What I don't know is what's happening that my computer can't keep the connection alive. Could it have something to do with the job itself?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ssh connection timing out Ubuntu 10.04 kells Ubuntu 6 11-15-2010 07:03 AM
ssh connection timing out - Lenny out of the box SirSefu Linux - Newbie 4 12-17-2009 07:41 AM
I have one server that is timing out ssh connections, how can I fix that? abefroman Linux - Server 3 08-11-2009 02:23 AM
SSH remote command not timing out tajsss Other *NIX 5 04-28-2005 06:57 AM
SSH timing out/not connecting NeccoWolf Linux - Networking 2 01-26-2003 02:01 PM


All times are GMT -5. The time now is 02:53 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration