erlug
[Top] [All Lists]

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

To: erlug@xxxxxxxxxxxxxx
Subject: Re: [Erlug] Script scp uploadare file su server remoto
From: Lucio + Alice <grenzil@xxxxxxxx>
Date: Thu, 23 Jan 2014 18:16:41 +0100
Ciao,
con questa riga

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

ho il seguente log

OpenSSH_6.0p1 Debian-4, OpenSSL 1.0.1e 11 Feb 2013
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug1: Connecting to moydomain.it [xxx.xxx.xxx.xxx] port 21.
debug1: Connection established.
debug1: permanently_set_uid: 0/0
debug1: identity file /root/.ssh/id_rsa type 1
debug1: Checking blacklist file /usr/share/ssh/blacklist.RSA-2048
debug1: Checking blacklist file /etc/ssh/blacklist.RSA-2048
debug1: identity file /root/.ssh/id_rsa-cert type -1
debug1: identity file /root/.ssh/id_dsa type -1
debug1: identity file /root/.ssh/id_dsa-cert type -1
debug1: identity file /root/.ssh/id_ecdsa type -1
debug1: identity file /root/.ssh/id_ecdsa-cert type -1
debug1: ssh_exchange_identification: 220-#
debug1: ssh_exchange_identification: 220-#
debug1: ssh_exchange_identification: 220-#  Domain
debug1: ssh_exchange_identification: 220-#  The XXXXX Company
debug1: ssh_exchange_identification: 220-#
debug1: ssh_exchange_identification: 220-#
debug1: ssh_exchange_identification: 220 This is a private system - No anonymous login

Di conseguenza dovrei inserire la password .. come?

Oppure quale altro comando usare per trasferire dei file su un server remoto?

Grazie
Lucio

Il 23/01/2014 16.29, Ulisse Monari ha scritto:
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/
-----------------------------------------------------------



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