Mailinglist Archive: opensuse (878 mails)

< Previous Next >
[opensuse] Re: How start a remote job and detach the session, and re-connect later?
  • From: Joachim Schrod <jschrod@xxxxxxx>
  • Date: Thu, 12 Sep 2013 01:06:22 +0200
  • Message-id: <l0qt16$kq9$1@ger.gmane.org>
On 09/11/13 20:19, Carlos E. R. wrote:

I want to start an ssh session, start a command, get out, and later
connect again via ssh and pick up the still running program and
output.

Does the repeat-connection needs to be with ssh?

Within an ssh session, typing "~<C-z>" (that's the key with an
tilde ~, and Ctrl-Z following) suspends the ssh session. One has an
active shell back at the command issuing server then.[*] With the
command "fg" one can resume the ssh session.

Joachim

[*] If one has several cascadet ssh sessions, it's an "interesting"
game to guess the amount of tildes before <Ctrl-Z> that one needs
to get at an intermediate ssh session.

--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Joachim Schrod, Roedermark, Germany
Email: jschrod@xxxxxxx

--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse+owner@xxxxxxxxxxxx

< Previous Next >
Follow Ups
References