Re: [Nolug] multiple SSH sessions at once

From: Scott Harney <scotth_at_scottharney.com>
Date: Mon, 21 Apr 2008 12:55:56 -0500
Message-ID: <5a8409c40804211055i5d1f86e4v6a9704531c6126a@mail.gmail.com>

That's the great thing about screen. you don't disconnect.

login to workstation at work. screen -D -R mynamedsession .
ssh host1 ctrl-A-C ssh host2, etc etc
ctrl-A D to "detach" ssh still connect.
Go home.
ssh in to office workstation
screen -D -R mynamedsession
pick up where you left off.

On Mon, Apr 21, 2008 at 12:15 PM, Petri Laihonen <pietu@weblizards.net>
wrote:

> Charles Paul wrote:
> > You also would want to send output to /dev/null because any
> > stdout/stderr would make it very hard to work in the terminal you
> > submitted this sort of thing.
> >
> >> #!/bin/sh
> >> connectssh-1.sh > /dev/null 2>&1 && \
> >> connectssh-2.sh > /dev/null 2>&1 && \
> >> connectssh-3.sh > /dev/null 2>&1 && \
> >> connectssh-4.sh > /dev/null 2>&1 || echo oops, something screwed up
> >> ##
> >>
> >
> > This would not be useful.
> >
> > LOGICAL AND would not do anything aside from running
> > connectssh-1.sh... as these scripts do not fork, and an external kill
> > signal would not satisfy the && conditional.
> >
> > Regardless, thanks for attempting to enhance my very quick example.
> > ___________________
> > Nolug mailing list
> > nolug@nolug.org
> >
> >
> Yes. One of the things I forgot to mention, would also be graceful
> disconnection from the remote end. Or do I have to care about it in case
> of SSH?
>
>
> Petri
>
> ___________________
> Nolug mailing list
> nolug@nolug.org
>

___________________
Nolug mailing list
nolug@nolug.org
Received on 04/21/08

This archive was generated by hypermail 2.2.0 : 12/19/08 EST