Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 09-09-2010, 12:59 AM   #1
LQ Newbie
Registered: Jun 2010
Posts: 1

Rep: Reputation: 0
If I exit an SSH session, would it terminate transfers from one server to another?

I SSH into a few servers now and then, oftentimes to copy large files or a large amount of files from one server to another. Typically I use either scp, ftp, or rsync.

My question is, what happens if I get a transfer going (scp, ftp, rsync) and then quit out of the SSH session? Would the operation/transfer still proceed, or does it end as soon as I would close Putty or whatever SSH client?

The reason I'm asking is because oftentimes, these transfers can take some time, but it only takes me a few seconds to give the command. It would be handy if I didn't have to worry about keeping the SSH connection going, but I'm just not sure how that works.
Old 09-09-2010, 01:12 AM   #2
LQ Guru
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295
Hello and Welcome to LinuxQuestions,

Have a look at the nohup command:
man nohup
and how to put a process in the background using & at the end of the command. Basically
nohup yourcommand &
will detach the command from the shell/console with the nohup and put it in the background with the & at the end. Then you can safely disconnect your SSH session. You can check by logging in again and see if your process is still running.

Kind regards,

Old 09-09-2010, 02:17 AM   #3
Registered: Aug 2010
Distribution: Fedora, Centos, Debian
Posts: 49

Rep: Reputation: 7
You can also use tool screen .


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
How to terminate Bash Script if remote session disconnects zia.hassan Linux - Newbie 4 06-15-2009 04:04 AM
I am unable to exit my script that uses ssh to login to a remote server jtbinuya Linux - Newbie 2 06-12-2008 10:17 PM
terminate session after 15 minutes jonfa Linux - Security 1 06-22-2007 11:25 AM
LXer: Creative Commons helps authors terminate copyright transfers LXer Syndicated Linux News 0 01-11-2007 01:24 AM
Terminate Session Remotely wwnexc Linux - Software 13 01-06-2006 06:02 AM > Forums > Linux Forums > Linux - Server

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

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