Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Problema con RSYNC

4 views
Skip to first unread message

cb

unread,
Jan 20, 2023, 4:07:25 AM1/20/23
to
Cerco di copiare una mia dir locale su "sito remoto"
> rsync -zvrah --progress ~/Desktop/testrsync ftp.XXXX."sito
remoto".org/TEST
---
sending incremental file list
created directory ftp.XXXX."sito remoto".org/TEST
testrsync/
testrsync/cippolone
11 100% 0.00kB/s 0:00:00 (xfr#1, to-chk=0/2)
sent 146 bytes received 110 bytes 512.00 bytes/sec
total size is 11 speedup is 0.04
---
Tutto sembra OK, peccato che su XXXX."sito remoto" non viene creata la
dir TEST ne' trasferito nulla e senza segnalazioni !

Sbaglio io qualche parametro o e' il "sito remoto" che mi blocca senza
dirmelo ?
e poi: perche' caspita non mi chiede la password visto che XXXX ce l'ha ?
Quindi ho provato con
sshpass -p "password" rsync -zvrah --progress ~/Desktop/testrsync
ftp.XXXX."sitoremoto".org/TEST
ciccia :-(
Semmai servisse "sito remoto" e' altervista.

GRAZIE a chi vorra' aiutarmi

angelo

unread,
Jan 20, 2023, 4:33:08 AM1/20/23
to
Il 20/01/23 10:07, cb ha scritto:
Io uso questa sintassi, a te mancano i due punti dopo il sito di
destinazione:

rsync -avblht /home/user user@nas-sy216:/volume1/user/rsync/current
prova con:

rsync -zvrah --progress ~/Desktop/testrsync ftp.XXXX."sito
remoto".org:/TEST

angelo

cb

unread,
Jan 20, 2023, 5:15:17 AM1/20/23
to
>rsync -zvrah [e anche, al buio, -avblht ] --progress
~/Desktop/testrsync ftp.XXXX."sito remoto".org:/TEST
ssh: connect to host ftp.XXXX."sito remoto".org port 22: Connection refused
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: unexplained error (code 255) at io.c(235) [sender=3.1.3]

Ho aggiunto (come trovato sul mio motore di ricerca preferito)
ServerAliveInterval 30
ServerAliveCountMax 6
a
/etc/ssh/ssh_config
stesso risultato

Idem con
>sshpass -p "....." ecc,

Grazie comunque e *molto* x l'attenzione !

angelo

unread,
Jan 20, 2023, 8:45:24 AM1/20/23
to
Il 20/01/23 11:15, cb ha scritto:
> >rsync -zvrah [e anche, al buio,  -avblht ] --progress
> ~/Desktop/testrsync ftp.XXXX."sito remoto".org:/TEST
> ssh: connect to host ftp.XXXX."sito remoto".org port 22: Connection refused
> rsync: connection unexpectedly closed (0 bytes received so far) [sender]
> rsync error: unexplained error (code 255) at io.c(235) [sender=3.1.3]

Pare che il server rifiuti la connessione ssh, prova a dare il comando:

ssh -vvv ftp.XXXX."sito remoto".org

angelo

rootkit

unread,
Jan 20, 2023, 8:49:48 AM1/20/23
to
Il Fri, 20 Jan 2023 10:07:22 +0100, cb ha scritto:


> Semmai servisse "sito remoto" e' altervista.

a parte gli errori di sintassi che ti sono già segnalati ma sei sicuro che
al server ftp di altervista ti possa collegare in ssh?

cb

unread,
Jan 20, 2023, 10:13:44 AM1/20/23
to
On 1/20/23 14:45, angelo wrote:
> Pare che il server rifiuti la connessione ssh, prova a dare il comando:
> ssh -vvv ftp.XXXX."sito remoto".org

>ssh -vvv ftp.XXXX.altervista.org
OpenSSH_8.2p1 Ubuntu-4ubuntu0.5, OpenSSL 1.1.1f 31 Mar 2020
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: include
/etc/ssh/ssh_config.d/*.conf matched no files
debug1: /etc/ssh/ssh_config line 21: Applying options for *
debug2: resolving "ftp.XXXX.altervista.org" port 22
debug2: ssh_connect_direct
debug1: Connecting to ftp.XXXX.altervista.org [51.75.240.54] port 22.
debug1: connect to address 51.75.240.54 port 22: Connection refused
ssh: connect to host ftp.XXXX.altervista.org port 22: Connection refused
e mi hanga anche il ping/pong
Passiensa: resto con filezilla
:-(
Grazie comunque x l'attenzione !


cb

unread,
Jan 20, 2023, 11:17:05 AM1/20/23
to
On 1/20/23 14:45, angelo wrote:
> Pare che il server rifiuti la connessione ssh, prova a dare il comando:
> ssh -vvv ftp.XXXX."sito remoto".org

fermi tutti [si fa per ridere]
passando la password ad RSYNC
>sshpass -p "password" rsync -vvv ftp.XXX.altervista.org
ottengo
<---------inizio--------->
building file list ...
[sender] make_file(ftp.XXX.altervista.org,*,0)
done
send_file_list done
send_files starting
server_recv(2) starting pid=29791
recv_file_name(ftp.XXX.altervista.org)
received 1 names
recv_file_list done
get_local_name count=1 .
generator starting pid=29791
>>>>>>>> ??????
delta-transmission disabled for local transfer or --whole-file
<<<<<<<< ??????
recv_generator(ftp.XXX.altervista.org,0)
drwxrwxr-x 4,096 2023/01/20 09:43:42 ftp.XXX.altervista.org
generate_files phase=1
send_files phase=1
recv_files(1) starting
recv_files phase=1
generate_files phase=2
send_files phase=2
send files finished
total: matches=0 hash_hits=0 false_alarms=0 data=0
recv_files phase=2
recv_files finished
generate_files phase=3
generate_files finished
sent 70 bytes received 528 bytes 1,196.00 bytes/sec
total size is 0 speedup is 0.00
[sender] _exit_cleanup(code=0, file=main.c, line=1207): about to call
exit(0)
<---------fine--------->

che *sembrerebbe* andare bene ...

MA

>sshpass -p "password" rsync ~/Desktop/testrsync
ftp.XXX.altervista.org:/TEST
mi da'
<---------inizio--------->
ssh: connect to host ftp.XXX.altervista.org port 22: Connection refused
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: unexplained error (code 255) at io.c(235) [sender=3.1.3]
<---------fine--------->

Perche' caspita FILEZILLA ci riesce ed io no ?
Forse che loro sono + bravi di me ?
<sghignzzo triste>

GRAZIE a chi (Angelo e rootkit in primis) avra' la pazienza di perderci
ancora tempo :-)



rootkit

unread,
Jan 20, 2023, 6:22:34 PM1/20/23
to
Il Fri, 20 Jan 2023 17:17:02 +0100, cb ha scritto:


> che *sembrerebbe* andare bene ...

no non va bene per niente.
se vuoi la conferma prova a mettere al posto del sito una stringa a caso
qualsiasi, otterrai lo stesso risultato.
è la sintassi che è sbagliata: se non metti i due punti seguiti dal path
il comando rsync *non* interpreta come percorso remoto e non ci prova
nemmeno a collegarsi.


> Perche' caspita FILEZILLA ci riesce ed io no ?
> Forse che loro sono + bravi di me ?

perché usa un protocollo diverso, presumibilmente ftp.

angelo

unread,
Jan 21, 2023, 7:05:26 AM1/21/23
to
Il 20/01/23 17:17, cb ha scritto:
...
> passando la password ad RSYNC
> >sshpass -p "password" rsync -vvv ftp.XXX.altervista.org
> ottengo
...
> recv_file_name(ftp.XXX.altervista.org)

dice di ricevere il file "ftp.XXX.altervista.org"
...
> drwxrwxr-x          4,096 2023/01/20 09:43:42 ftp.XXX.altervista.org

che infatti compare nella directory corrente...

...
> sent 70 bytes  received 528 bytes  1,196.00 bytes/sec
> total size is 0  speedup is 0.00
...
> che *sembrerebbe* andare bene ...

Confermo quanto ti e' gia' stato detto, dal report a me sembra che non
si sia connesso al server remoto ma che si sia solo creato il file
"ftp.XXX.altervista.org" che ritrovi se fai un ls sulla directory corrente.
Tieni anche presente che non basta avere il server sshd raggiungibile su
altervista.org ma che deve esserci anche il daemon rsyncd attivo sul
sito remoto.

angelo

Piergiorgio Sartor

unread,
Jan 21, 2023, 8:05:55 AM1/21/23
to
On 21/01/2023 13.05, angelo wrote:
[...]
> Tieni anche presente che non basta avere il server sshd raggiungibile su
> altervista.org ma che deve esserci anche il daemon rsyncd attivo sul
> sito remoto.

Sicuro?

Mi par di ricordare, anzi ne sarei quasi
certo, che se "rsync" viaggia sopra "ssh"
(o sotto) esegue un "rsync" remoto.

Ovviamente nell'ipotesi che "rsync" (ma
non "rsyncd") sia presente ed eseguibile
sulla macchina remota.

bye,

--

piergiorgio

rootkit

unread,
Jan 21, 2023, 8:15:51 AM1/21/23
to
Il Sat, 21 Jan 2023 13:05:21 +0100, angelo ha scritto:


> Tieni anche presente che non basta avere il server sshd raggiungibile su
> altervista.org ma che deve esserci anche il daemon rsyncd attivo sul
> sito remoto.

no questo non è necessario. se passi da ssh basta ci sia rsync anche sul
remoto, col daemone non passi da ssh.

0 new messages