PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Serveur - Sécurité et techniques > comp.security.ssh > How to foce SCP to create a directory ?????????????
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
comp.security.ssh SSH secure remote login and tunneling tools.

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

Réponse
 
LinkBack Outils de la discussion
Vieux 10/09/2007, 14h57   #1
gerry.brennan@gmail.com
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut How to foce SCP to create a directory ?????????????


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

gerb

  Réponse avec citation
Vieux 10/09/2007, 15h08   #2
K. Jennings
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: How to foce SCP to create a directory ?????????????

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?


  Réponse avec citation
Vieux 10/09/2007, 15h44   #3
gerry.brennan@gmail.com
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: How to foce SCP to create a directory ?????????????

On Sep 10, 3:08 pm, "K. Jennings" <kjenni...@resurgence.net> 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

  Réponse avec citation
Vieux 10/09/2007, 15h45   #4
gerry.brennan@gmail.com
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: How to foce SCP to create a directory ?????????????

On Sep 10, 3:44 pm, gerry.bren...@gmail.com wrote:
> On Sep 10, 3:08 pm, "K. Jennings" <kjenni...@resurgence.net> 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.

  Réponse avec citation
Vieux 10/09/2007, 19h21   #5
K. Jennings
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut 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...@resurgence.net> 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?

  Réponse avec citation
Vieux 10/09/2007, 19h55   #6
Nico
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: How to foce SCP to create a directory ?????????????

On 10 Sep, 14:57, gerry.bren...@gmail.com 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
>
> gerb


I think you should either send a preliminary "mkdir" command, or use
rsync something like this:

rsync -avv --include=authorized_keys -e 'ssh -o
stricthostkeychecking=no -oCiphers=aes128-cbc' ~/.ssh/ ring1@
$hostname:.ssh/

  Réponse avec citation
Vieux 11/09/2007, 14h23   #7
gerry.brennan@gmail.com
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: How to foce SCP to create a directory ?????????????

On 10 Sep, 19:55, Nico <nka...@gmail.com> wrote:
> On 10 Sep, 14:57, gerry.bren...@gmail.com 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

>
> > gerb

>
> I think you should either send a preliminary "mkdir" command, or use
> rsync something like this:
>
> rsync -avv --include=authorized_keys -e 'ssh -o
> stricthostkeychecking=no -oCiphers=aes128-cbc' ~/.ssh/ ring1@
> $hostname:.ssh/


rsync is not available on the machine

  Réponse avec citation
Vieux 15/09/2007, 00h17   #8
Nico
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: How to foce SCP to create a directory ?????????????

On 11 Sep, 14:23, gerry.bren...@gmail.com wrote:

> rsync is not available on the machine- Hide quoted text -


OK, so SCP is enabled without shell access? Which particular approach
to that is in use, and are you *sure* rsync isn't installed? I've seen
cases where the admins didn't realize it was there.


  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 09h37.


Édité par : vBulletin® version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,13850 seconds with 16 queries