Pagina 1 di 1

strano problema scp non copia files

Inviato: mer 23 ago 2006, 23:17
da gettons
Salve a tutti, da un tratto ad un altro la mia macchina , se raggiunta da un scp non invia più file, non dando nessuna motivazione.
Semplicemente dopo aver effettuato il login correttamente nel campo dove solitamente appare lo stato di download durante un scp, per intendersi simile a wget, rimane nero e va a capo, emulando un RETURN.

Ho provato a farlo anche in locale su localhost, ho provato da un altro host al di fuori della mia rete....

Il fatto è che il server sshd invece non ha problemi , tutto perfetto.

Se poi faccio un scp su un altra macchina invece , agendo la mia con il problema suddetto come client, tutto funziona a modo.Il client quindi sempra a posto.

Particolari configurazioni dell sshd non ci sono, se non che inizialmente lo mettevo in ascolto sulla 1100 e al router ovviamente facevo puntare la 1100 della wan alla 1100 della mia macchina.

Ancora piu strano è che con client come winscp o krusader invece va tutto a meraviglia l' scp in modalità grafica.

Allora ho rimesso il file di config sshd orignale sulla 22, reinstallato il pacchetto openssh originale della 10.2 , e lanciato scp con il verbose e questo l'output:
bash-3.00$ scp -v gettons@localhost:/home/gettons/prova .
Executing: program /usr/bin/ssh host localhost, user gettons, command scp -v -f /home/gettons/prova
OpenSSH_4.2p1, OpenSSL 0.9.7g 11 Apr 2005
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Connecting to localhost [127.0.0.1] port 22.
debug1: Connection established.
debug1: identity file /home/gettons/.ssh/identity type -1
debug1: identity file /home/gettons/.ssh/id_rsa type -1
debug1: identity file /home/gettons/.ssh/id_dsa type -1
debug1: Remote protocol version 1.99, remote software version OpenSSH_4.2
debug1: match: OpenSSH_4.2 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_4.2
debug1: SSH2_messaggio_KEXINIT sent
debug1: SSH2_messaggio_KEXINIT received
debug1: kex: server->client aes128-cbc hmac-md5 none
debug1: kex: client->server aes128-cbc hmac-md5 none
debug1: SSH2_messaggio_KEX_DH_GEX_REQUEST(1024<1024<8192) sent
debug1: expecting SSH2_messaggio_KEX_DH_GEX_GROUP
debug1: SSH2_messaggio_KEX_DH_GEX_INIT sent
debug1: expecting SSH2_messaggio_KEX_DH_GEX_REPLY
debug1: Host 'localhost' is known and matches the RSA host key.
debug1: Found key in /home/gettons/.ssh/known_hosts:4
debug1: ssh_rsa_verify: signature correct
debug1: SSH2_messaggio_NEWKEYS sent
debug1: expecting SSH2_messaggio_NEWKEYS
debug1: SSH2_messaggio_NEWKEYS received
debug1: SSH2_messaggio_SERVICE_REQUEST sent
debug1: SSH2_messaggio_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,password,keyboard-interactive
debug1: Next authentication method: publickey
debug1: Trying private key: /home/gettons/.ssh/identity
debug1: Trying private key: /home/gettons/.ssh/id_rsa
debug1: Trying private key: /home/gettons/.ssh/id_dsa
debug1: Next authentication method: keyboard-interactive
debug1: Authentications that can continue: publickey,password,keyboard-interactive
debug1: Next authentication method: password
gettons@localhost's password:
debug1: Authentication succeeded (password).
debug1: channel 0: new [client-session]
debug1: Entering interactive session.
debug1: Sending command: scp -v -f /home/gettons/prova
Sink:

bash-3.00$ Sending file modes: C0644 0 prova
debug1: client_input_channel_req: channel 0 rtype exit-status reply 0
debug1: channel 0: free: client-session, nchannels 1
debug1: fd 0 clearing O_NONBLOCK
debug1: fd 1 clearing O_NONBLOCK
debug1: Transferred: stdin 0, stdout 0, stderr 0 bytes in 0.0 seconds
debug1: Bytes per second: stdin 0.0, stdout 0.0, stderr 0.0
debug1: Exit status 1

bash-3.00$
L'sshd_config non ve lo sto a postare poichè è quello di default.


Grazie a chiunque voglia aiutarmi.



Tommaso