erlug
[Top] [All Lists]

Re: [Erlug] Script scp uploadare file su server remoto

To: ERlug - Lista Pubblica <erlug@xxxxxxxxxxxxxx>
Subject: Re: [Erlug] Script scp uploadare file su server remoto
From: Ulisse Monari <ulisse.monari@xxxxxxxxx>
Date: Thu, 23 Jan 2014 16:29:48 +0100
avevo capito male lo username che stai usando.

prova:

scp -v -oUser='xxx@xxxxxx'  myfile.exe  mydomain.it:/download

anche se pero vedo che nel debug dopo "Connecting"
non si vede "Connection established" sulla porta 22 e
non vorrei che ci fossero anche altri problemi prima ancora
della fase di autenticazione.

U.


On 1/23/14, Lucio + Alice <grenzil@xxxxxxxx> wrote:
> Ciao,
> anzitutto grazie x le risposte ..
> ho fatto diversi tentativi con il seguente comando:
>
> scp -v myfile.exe -oUser=xxx@xxxxxx\@mydomain.it:/download
>
> la risposta e' la seguente
>
> debug1: Reading configuration data /etc/ssh/ssh_config
> debug1: /etc/ssh/ssh_config line 19: Applying options for *
> debug1: Connecting to mydomain.it [xxx.xxx.xxx.xxx] port 22.
>
> e poi rimane bloccato li (ho verificato che il trasferimento non inizia)
>
> Pensando mancasse la password ho provato anche:
>
> scp -v myfile.exe -oUser=xxx@xxxxxx:password\@mydomain.it:/download
>
> Tuttavia ho notato che in questo caso l'utente diventa xxx e non xxx@xxxxxx
>
> Suggerimenti?
> Grazie
>
> Il 23/01/2014 14.09, Ulisse Monari ha scritto:
>> Mah, lo @ non è usato per "variable substitution" ne in bash ne in csh ne
>> in sh ne in ksh che  io sappia. Ha un significato particolare dentro
>> "" cioè in "$@"
>> come indicato in man bash "Special Parameters".
>>
>> Quindi - secondo me - non andrebbe escapato.
>> Certo la cosa può dipendere anche dal contesto: la riga di comando
>> effettiva viene costruita/formata dentro uno script anche grazie alla
>> sostituzione di variabili di shell? La cosa potrebbe cambiare.
>>
>> U.
>>
>>
>> On 1/23/14, Sandro guly Zaccarini <guly@xxxxxxxxxxxx> wrote:
>>> On Wed, Jan 22, 2014 at 12:34:18AM +0100, Nicola Canepa wrote:
>>>> Non mi sembra un problema di shell, quindi proverei con scp -o
>>>> User=utente@xxxxxxxxxxx
>>>>
>>> a naso dovrebbe essere escapato anche qui, quindi
>>> scp -oUser=user\@domain file remotehost:/path/to/file
>>>
>>> sz
>>> --
>>>    /"\   taste your favourite IT consultant
>>>    \ /   gpg: http://www.guly.org/guly.asc
>>>     X
>>>    / \
>>>
>>> _______________________________________________
>>> Erlug mailing list
>>> Erlug@xxxxxxxxxxxxxx
>>> http://erlug.linux.it/cgi-bin/mailman/listinfo/erlug
>>> -----------------------------------------------------------
>>> ErLUG webzine: http://erlug.linux.it
>>> Manuali FDL:
>>> LinuxFacile - http://linuxfacile.medri.org/
>>> Linux Da Zero - http://erlug.linux.it/linuxdazero/
>>> Connettivita' offerta da Ehiweb.it - http://www.ehiweb.it/
>>> -----------------------------------------------------------
>>>
>>
>
> _______________________________________________
> Erlug mailing list
> Erlug@xxxxxxxxxxxxxx
> http://erlug.linux.it/cgi-bin/mailman/listinfo/erlug
> -----------------------------------------------------------
> ErLUG webzine: http://erlug.linux.it
> Manuali FDL:
> LinuxFacile - http://linuxfacile.medri.org/
> Linux Da Zero - http://erlug.linux.it/linuxdazero/
> Connettivita' offerta da Ehiweb.it - http://www.ehiweb.it/
> -----------------------------------------------------------
>


-- 
Ulisse Monari
"E' tutto facile per chi NON deve farlo"

<Prev in Thread] Current Thread [Next in Thread>