Find the answer to your Linux question:
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 ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Nov 2011
    Posts
    2

    Thumbs down 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.

  2. #2
    Trusted Penguin Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    3,410
    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:
    Code:
    host *
      ServerAliveInterval   10
    No idea how to do the same in putty though.
    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.

  3. #3
    Just 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

  4. $spacer_open
    $spacer_close
  5. #4
    Trusted Penguin Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    3,410
    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.

  6. #5
    Trusted Penguin Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    3,410
    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 - rackAID
    You must always face the curtain with a bow.

  7. #6
    Trusted Penguin
    Join Date
    May 2011
    Posts
    4,353
    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •