Re: [CentOS] How to reattach to a failed ssh session or process

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On Thu, 2006-09-21 at 06:29 -0700, Craig White wrote:

> > > > Hi, is there a way to "reconnect" to a ssh session that was
> > > > disconnected and left running processes in the linux server?
> > 
> > > You can't reconnect to a broken ssh connection, and in fact it
> > > should have killed all the processes you were running.  
> > 
> > Unfortunately, I have seen many instances where ssh sessions do like this; if 
> > one happens to be running a yum update in one, and yum is downloading 
> > packages (putting yum into its unkillable mode, which, in my opinion is such 
> > an annoying thing; there have been a number of times I'd start up an update, 
> > have it run for a while, then need to leave (taking my laptop with me, and 
> > thus disconnecting the session, which can cause its own problems) where I'd 
> > like to just simply CTRL-C yum and have it do the Right Thing; yum just 
> > cycles to the next mirror (at least the last time a couple of weeks ago it 
> > did this) when you hit CTRL-C OR when you send yum a SIGTERM)), then you can 
> > get some really wierd artifacts with unkillable but not running yum 
> > processes; I have seen a few where SIGKILL didn't do anything, and all 
> > because of a network glitch. 
> ---
> man screen
> 
> screen creates a detachable session

Or, depending on your bandwidth and how you feel about GUI's, look
at VNC (using the module to export your console screen or vncserver
for separate long-running sessions).

-- 
  Les Mikesell
   lesmikesell@xxxxxxxxx


_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux