[XCSSA] Re: [SATLUG] Resuming a failed scp session...
xcssa@xcssa.org
xcssa@xcssa.org
Tue, 10 Jul 2007 16:17:02 -0500
I am also using screen to keep sessions open on my personal server.
Additionally I am using Key based auth for SSH connections with no
password fallback (No Key = No Entry). I find the solution works
reasonably well for me and offers a little more security.
Perhaps that could be included in any demo especially the pitfalls of
turning off Password auth before you validate keys when administering
remotely. (Yes had to head to the bunker to fix it on the terminal)
RD
-----Original Message-----
From: xcssa-admin@xcssa.org [mailto:xcssa-admin@xcssa.org]
Sent: Tuesday, July 10, 2007 4:07 PM
To: satlug@satlug.org
Cc: Don Wright; xcssa@xcssa.org
Subject: [XCSSA] Re: [SATLUG] Resuming a failed scp session...
On Monday 09 July 2007 00:16, Don Wright wrote:
> On Sun, 8 Jul 2007 02:38:52 -0500, tom weeks
> <tweeksjunk2@theweeks.org>
wrote:
> >If you initially did your scp via:
> > scp -rp ./local/dir user@remotehost:/path/to/remote/file
> >
> >Then just pick up where you left off using:
> > rsync --partial -av ./local/file
> >user@remotehost:/path/to/remote/file
>
> Everyone does know about screen(1), right? How it can keep a remote
> session going despite the loss of the original scp link, and allow
> reconnection to work in progress after the link is re-established?
Different problem.
I was scp PUSHING files up to my web server.. The RR connection dropped
with locked up the running scp protocol session. rsync was a good way
to "pick it back up" and continue the copy.
What you're talking about is being shelled into a place (like my web
server) and having screen keep & hold my shell session for me. And
yes.. losing my ssh session to my server THEN is saved by using screen.
I use screen on my server to. You can literally he in editing a live
HTML file.. lose connections.. and just ssh back in and <poof>, you're
still in the vi editor right where you left off. Yes.. very nice. If
any of you use ssh a lot and are not familiar with screen.. it's a god
send. I even invoke it from my .bash_rc so that automatically
re-connects to existing screen sessions. :) Simple & effective. Maybe I
should do a session on that at XCSSA...
Tweeks
_______________________________________________
XCSSA mailing list
XCSSA@xcssa.org
http://xcssa.org/mailman/listinfo/xcssa