Re: How to foce SCP to create a directory ?????????????



On Sep 10, 3:44 pm, gerry.bren...@xxxxxxxxx wrote:
On Sep 10, 3:08 pm, "K. Jennings" <kjenni...@xxxxxxxxxxxxxx> wrote:

On Mon, 10 Sep 2007 06:57:54 -0700, gerry.brennan wrote:
Is there a way to force scp to create a directory if it does not exist
when copying a file remotely

scp -o stricthostkeychecking=no -oCiphers=aes128-cbc ~/.ssh/
authorized_keys ring1@$hostname:~/.ssh/authorized_keys

Have you tried with -r?

yes I have tried

scp -r -o stricthostkeychecking=no -oCiphers=aes128-cbc ~/.ssh/
authorized_keys ring1@$hostname:~/.ssh/authorized_keys

No joy

What would be even better if i could overwrite the directory and
remove any of its contents with a singel scp command.

.



Relevant Pages

  • Re: IPAQ, WM5 and 4GB SD/SDHC Cards
    ... Has anybody done this to an axim X51v rom 12? ... The directions say to overwrite two dll's. ... but they're not in the destination directory. ... Total commander is gonna have the same problem as copying them??? ...
    (microsoft.public.pocketpc)
  • Copying files in VB.NET 2005
    ... Copy all files from a DVD to a specific folder in the hard drive and overwrite all files always. ... The problem I am facing is that the copy statement I am using is that when overwriting the files it will prompt for each file, so I can not find an option to tell it to overwrite all. ... As you can see I have tried with two ways to copying the files and since these DVD may have up to 7GB of data, I want to show the user the progress of the copying and then inform the user when the copying operation is completed. ...
    (microsoft.public.dotnet.languages.vb)
  • Re: OE backup and restore
    ... It'll add the stuff, not overwrite it. ... Pretty hard to do by copying; easier/faster to export/import. ... Ron ...
    (microsoft.public.windows.inetexplorer.ie6_outlookexpress)
  • Re: Well, that _was_ neat!
    ... in different sectors so the controller is now copying the bad data over ... Ahh, the joy of consecutive serial numbers. ... Hmm, that's almost UI, so out of curiosity I went and checked mooli: ...
    (alt.sysadmin.recovery)
  • Re: very puzzling!!
    ... I too think it could be virus related, I was hoping that I could overwrite ... Expand LSASS.EX_ LSASS.EXE after copying to the hard-disk. ...
    (microsoft.public.windowsxp.help_and_support)