Results 1 to 6 of 6
Hello all,
I have dedicated server on fdcservers and i logged into ssh using putty now i try to use scp command from remote server to another remote server and ...
- 11-29-2011 #1Just Joined!
- Join Date
- Nov 2011
- Posts
- 2
ssh putty closes automatically
Hello all,
I have dedicated server on fdcservers and i logged into ssh using putty now i try to use scp command from remote server to another remote server and it downloads files correctly but after 20 to 30 minutes putty closes while downloading files automatically.
It doesnt give any message like session logout it simply closes putty.
My files are around 40 to 50 gb so i am using scp command
scp -r root at 127.0.0.1:/home/admin/www/example exampled
Can you tell me how i must tell or change settings for putty not to close automatically while downloading files ?
Please suggest me as what to be done immediately.
Thanks.
- 11-29-2011 #2
It might be, that the ssh daemon thinks, that the connection is idle and therefore closes it after a timeout.
You could try to signal the ssh daemon, that you intend to keep the connection open.
The option to do so is "ServerAliveInterval"
In my .ssh/config I have:
No idea how to do the same in putty though.Code:host * ServerAliveInterval 10
I prefer a complete work environment (aka a real unix box) over putty anytime.
What you can do in any case is to start a screen session and trigger your scp command in there.
Code:man screen
P.S.: The scp command in your post doesnt make too much sense to me, but if it works: ok
You must always face the curtain with a bow.
- 11-29-2011 #3Just Joined!
- Join Date
- Nov 2011
- Posts
- 2
i am newbie please tell me after opening ssh client (putty) what i must do step by step like type a or type b ?
Thankyou so muchcccccccch
- 11-29-2011 #4
As I said, I have no idea about putty because I dont use it.
But it probably has a help page for you to read.You must always face the curtain with a bow.
- 11-29-2011 #5
Independent of putty: the command "screen" can help you.
- start a screen session
- enter your command
- detach from the session
From there on it doesnt matter if you loose the connection to your server.
You can always reconnect and reattach the session.
A quick google brought up this and it seems to show the basics:
Linux Screen Tutorial and How To - rackAIDYou must always face the curtain with a bow.
- 11-29-2011 #6Linux Guru
- Join Date
- May 2011
- Posts
- 1,838
This might help (no idea): when you open Putty, click the Connection menu item in the left-hand window pane, on the right, click the Enable TCP keepalives box.
FWIW, I agree w/Irithori. If you want this to be reliable, get yourself a Cygwin environment (Linux-like environment that runs under Windows), if you can't get a proper Linux box.


Reply With Quote