Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 07-31-2009, 09:04 PM   #1
Registered: Mar 2009
Posts: 222

Rep: Reputation: 30
SSH / process question

Hi - I've always wondered whether my process kills when I am in the process of doing something during my ssh session.

For instance, I ssh from my local box to dev-formbox and did an scp transfer to another remote host. All of the sudden, I lost ssh connectivity on my local box due to network issue.

Will the scp process (or any of my process that im currently doing) kill also once I loose the ssh session?

Please someone explain briefly.

I'd appreciate it!

Old 08-01-2009, 12:21 AM   #2
Registered: Jul 2004
Location: Boston, MA
Distribution: Slackware; Ubuntu; Slax
Posts: 172
Blog Entries: 2

Rep: Reputation: 34
you may try again, and note the time of the initial connection, and the time you observe the connection drops.

Then check logs to see if there is any indication of who dropped the connection (remote or local)...

You mentioned 3 machines - hopefully I am correct in interpreting your post as such. So if it is your machine (1) that drops the connection to (2) after you have started a transfer between (2) and (3), I believe that transfer will also be severed. If you run the scp on (2) in the background, however, it should outlive your shell, I think. Just make this
scp myfile.txt otheruser@otherserver:/path/to/file
into this
scp myfile.txt otheruser@otherserver:/path/to/file &
and you should be able to verify later whether the transfer was successful; you could even redirect output from scp to a local logfile somewhere on (2) where it is running and then it would leave you a trace.

If (1) and (2) are close to each other (like in the same office) you should work on resolving that network issue - some kind of timeout limit? Bad cables? Intermittent wireless access? A failing router or switch?

May want to move post to Networking.

Last edited by geek745; 08-01-2009 at 12:21 AM. Reason: added "May want to move post to Networking." at end.


sessions, ssh

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 process wont get killed vikrambhimbar Linux - General 3 05-29-2009 03:52 AM
SSH disconnect, connect to process briel Linux - General 2 11-24-2006 04:32 PM
SSH forked process shozmo Linux - Newbie 5 06-23-2006 02:49 AM
open a process from ssh rino.caldelli Linux - Security 3 03-14-2006 10:22 PM
apache, process owner, and rsync/ssh question Kruel Linux - Networking 0 03-01-2002 12:25 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:24 AM.

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