Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[risolto][ssh]trasferimeto files tramite scp
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian)
View previous topic :: View next topic  
Author Message
effeuno
Apprentice
Apprentice


Joined: 23 Dec 2003
Posts: 292

PostPosted: Tue May 31, 2005 12:19 pm    Post subject: [risolto][ssh]trasferimeto files tramite scp Reply with quote

Ho cercato prima di leggere tra i vari post, ma non ho capito bene.
Problema: trasferire files dal server al portatile ed eventualmente viceversa.

Sono in queste condizioni:
rete in ufficio con server linux (suse) ip 192.168.0.1 account root oppure sergio.
portatile con Gentoo ip 192.168.0.19 account root e sergio.

da portatile mi collego al server con:
ssh 192.168.0.1 ed è tutto ok (posso navigare sul server)

se do' il comando:

scp pippo.txt 192.168.0.19:/home/sergio/
risultato: ssh: connect to address 192.168.0.19 port 22: Connection refused



da server non mi posso collegare al portatile, infatti:

ssh 192.168.0.19 mi risponde:
risultato ssh: connect to address 192.168.0.19 port 22: Connection refused

sul portatile devo configurare cosa??????
Grazie per risposte e delucidazioni.!!!!!


Last edited by effeuno on Tue May 31, 2005 2:40 pm; edited 1 time in total
Back to top
View user's profile Send private message
mouser
Veteran
Veteran


Joined: 10 Aug 2004
Posts: 1419
Location: Milano

PostPosted: Tue May 31, 2005 1:04 pm    Post subject: Reply with quote

La sintassi completa di scp e' la seguente (piu' o meno):
Code:
scp <user>@<ip/hostname>:<file_origine> <user>@<ip/hostname>:<file_destinazione>


Quindi, per esempio, se devo copiare il file pippo.txt dal pc dell'ufficio (1.2.3.4) al pc di casa (di cui ho l'ip configurato su hosts come nome dragoon), e su entrambi ho l'utente mouser
Code:

$ scp mouser@1.2.3.4:~/pippo.txt mouser@dragoon:/home/mouser/

Nel caso sto lavorando sul pc del lavoro e sono in /home/mouser, posso dare al volo
Code:

$ scp pippo.txt mouser@dragoon:/home/mouser/

In ogni caso, ti consiglio di riprovare scp specificando anche il nome dell'utente.

Nel caso non risolvi, devi vedere le configurazioni di sshd (man sshd) e nel file di configurazione di sshd dovrebbe esserci la possibilta' di specificare gli utenti che possono scpare (e non facciamo battutine :roll: ).
Mi sembra che nella configurazione di base sshd permetta a scp di copiare in locale solo con la login root, cosa che, tra l'altro, mi sembra proprio una vaccata (IMHO)

My 2 eurocent
Ciriciao
mouser :wink:
Back to top
View user's profile Send private message
effeuno
Apprentice
Apprentice


Joined: 23 Dec 2003
Posts: 292

PostPosted: Tue May 31, 2005 2:39 pm    Post subject: Reply with quote

Risolto..... non avevo attivato sshd sul portatile.!!!!
Back to top
View user's profile Send private message
neryo
Veteran
Veteran


Joined: 09 Oct 2004
Posts: 1292
Location: Ferrara, Italy, Europe

PostPosted: Tue May 31, 2005 2:43 pm    Post subject: Reply with quote

effeuno wrote:
Risolto..... non avevo attivato sshd sul portatile.!!!!


si di solito x quel tipo di errore o non hai il demone attivo o ascolta su un altra porta... :roll:
_________________
cache: a safe place for hiding or storing things..

D-link DWL-G650 AirPlus
Apache Php Mysql
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum