Re: How to do an rm through ssh
- From: "Wences" <wgrillo@xxxxxxxxx>
- Date: 14 Jul 2006 08:18:58 -0700
Unruh wrote:
Why the -s?
Why all of the arguments?
Well, the -s turned out to be in excess. The rest, I'm afraid, are
needed.
However I have no idea what would happen on a Windows machine. rm is not a
windows command, - is not the windows argument designator.
Well... it's Windows + Cygwin, so it counts almost like *IX. Cygwin is
kinda a UNIX emulator for Windows, and OpenSSH runs inside it, so it's
kind of in Unix. From the cygwin environment /cygdrive/c is your C:
drive, etc...
Yes, rm -fr ... is NOT a subsystem ( whatever that is.)
Yes, Richard Silvermans post made me see why.
scp -i /root/.ssh/some_user-identity -P XXX todays_backup.tar.gz \
some_user@xxxxxxxxxxxxxxx:/cygdrive/d/backup/$day_of_week
What does -P XXX mean? that is not an option under openssh.
Well... scp uses -p for "preserve permissions", so it uses -P for the
port number.
The server listens on an exotic port number to add a bit of security
through obscurity.
What's wrong?
Too rococo a command line?
Hahahahaha! Yes, probably. But in the end, I did pull it off
Thanks for your comments. I do appreciate them.
Regards:
Wences
.
- References:
- How to do an rm through ssh
- From: Wences
- Re: How to do an rm through ssh
- From: Unruh
- How to do an rm through ssh
- Prev by Date: Re: How to do an rm through ssh
- Next by Date: Re: How to do an rm through ssh
- Previous by thread: Re: How to do an rm through ssh
- Next by thread: Re: How to do an rm through ssh
- Index(es):
Relevant Pages
|
|