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



On Mon, 10 Sep 2007 07:44:12 -0700, gerry.brennan 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


You can get the whole directory created if you do:

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

But, this would also transfer all the contents of ~/.ssh. I
assume that this is not hat you want, right?

.