Forum général.général Problème d'utilisation de scp

Posté par  .
Étiquettes : aucune
0
26
jan.
2006
Hello,

connecté via ssh à un serveur dédié sur lequel je veux y copier des fichiers venant d'un autre serveur (mutu celui-ci), je me heurte au problème suivant:


[20:37:18] root@XXXXXX - > scp -rv USER@domaine.com:/httpdocs/* .
Executing: program /usr/bin/ssh host domaine.com, user USER command scp -v -r -f /httpdocs/*
OpenSSH_3.6.1p2, SSH protocols 1.5/2.0, OpenSSL 0x0090701f
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug1: Rhosts Authentication disabled, originating port will not be trusted.
debug1: Connecting to domaine.com [IP] port 22.
debug1: Connection established.
debug1: identity file /root/.ssh/identity type -1
debug1: identity file /root/.ssh/id_rsa type 1
debug1: identity file /root/.ssh/id_dsa type -1
debug1: Remote protocol version 2.0, remote software version OpenSSH_3.8.1p1 Debian-8.sarge.4
debug1: match: OpenSSH_3.8.1p1 Debian-8.sarge.4 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_3.6.1p2
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-cbc hmac-md5 none
debug1: kex: client->server aes128-cbc hmac-md5 none
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
debug1: Host 'ns1.dwelline.com' is known and matches the RSA host key.
debug1: Found key in /root/.ssh/known_hosts:2
debug1: ssh_rsa_verify: signature correct
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,password,keyboard-interactive
debug1: Next authentication method: publickey
debug1: Trying private key: /root/.ssh/identity
debug1: Offering public key: /root/.ssh/id_rsa
debug1: Authentications that can continue: publickey,password,keyboard-interactive
debug1: Trying private key: /root/.ssh/id_dsa
debug1: Next authentication method: keyboard-interactive
Password:
debug1: Authentication succeeded (keyboard-interactive).
debug1: fd 4 setting O_NONBLOCK
debug1: fd 5 setting O_NONBLOCK
debug1: channel 0: new [client-session]
debug1: Entering interactive session.
debug1: Sending command: scp -v -r -f /httpdocs/*
debug1: channel 0: request exec
debug1: channel 0: open confirm rwindow 0 rmax 32768
debug1: channel 0: rcvd eof
debug1: channel 0: output open -> drain
debug1: channel 0: obuf empty
debug1: channel 0: close_write
debug1: channel 0: output drain -> closed
debug1: client_input_channel_req: channel 0 rtype exit-status reply 0
debug1: channel 0: rcvd close
debug1: channel 0: close_read
debug1: channel 0: input open -> closed
debug1: channel 0: almost dead
debug1: channel 0: gc: notify user
debug1: channel 0: gc: user detached
debug1: channel 0: send close
debug1: channel 0: is dead
debug1: channel 0: garbage collecting
debug1: channel_free: channel 0: 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
[20:38:49] root@XXXXX ->


Je ne vois pas ou peut etre l erreur... Merci à vous :)
  • # * ?

    Posté par  (site web personnel) . Évalué à 1.

    si tu remplasse le * par le nom d'un fichier qui existe. Est-ce que ca marche ?
    • [^] # Re: * ?

      Posté par  . Évalué à 2.

      oui, il doit utiliser zsh qui a des pb avec le '*'....
  • # Quand ça marche...

    Posté par  (site web personnel, Mastodon) . Évalué à 2.

    ... ça donne ça (avec clé et en ssh1):

    moi@babasse:/tmp/plop$ scp -rv USER@domaine.com:/tmp/* .
    Executing: program /usr/bin/ssh host domaine.com, user USER, command scp -v -r -f /tmp/*
    OpenSSH_4.2p1 Debian-5, OpenSSL 0.9.8a 11 Oct 2005
    debug1: Reading configuration data /etc/ssh/ssh_config
    debug1: Applying options for *
    debug1: Connecting to domaine.com [IP] port 22.
    debug1: Connection established.
    debug1: identity file /home/USER/.ssh/identity type 0
    debug1: identity file /home/USER/.ssh/id_rsa type 1
    debug1: identity file /home/USER/.ssh/id_dsa type 2
    debug1: Remote protocol version 1.99, remote software version OpenSSH_3.8.1p1 Debian-8.sarge.4
    debug1: match: OpenSSH_3.8.1p1 Debian-8.sarge.4 pat OpenSSH_3.*
    debug1: Local version string SSH-1.5-OpenSSH_4.2p1 Debian-5
    debug1: Waiting for server public key.
    debug1: Received server public key (768 bits) and host key (1024 bits).
    debug1: Host 'domaine.com' is known and matches the RSA1 host key.
    debug1: Found key in /home/USER/.ssh/known_hosts:1
    debug1: Encryption type: 3des
    debug1: Sent encrypted session key.
    debug1: Installing crc compensation attack detector.
    debug1: Received encrypted confirmation.
    debug1: Trying RSA authentication via agent with 'moi@babasse'
    debug1: Received RSA challenge from server.
    debug1: Sending response to RSA challenge.
    debug1: Remote: RSA authentication accepted.
    debug1: RSA authentication accepted by server.
    debug1: Requesting compression at level 6.
    debug1: Enabling compression at level 6.
    debug1: Sending command: scp -v -r -f /tmp/*
    debug1: Entering interactive session.
    debug1: fd 0 clearing O_NONBLOCK
    Sending file modes: C0644 469 feed-icon-10x10.png
    Sink: C0644 469 feed-icon-10x10.png
    feed-icon-10x10.png 100% 469 0.5KB/s 00:00
    Sending file modes: C0644 552 feed-icon-12x12.png
    Sink: C0644 552 feed-icon-12x12.png
    feed-icon-12x12.png 100% 552 0.5KB/s 00:00
    Sending file modes: C0644 764 feed-icon-16x16.png
    Sink: C0644 764 feed-icon-16x16.png
    feed-icon-16x16.png 100% 764 0.8KB/s 00:00
    Sending file modes: C0644 1090 feed-icon-24x24.png
    Sink: C0644 1090 feed-icon-24x24.png
    feed-icon-24x24.png 100% 1090 1.1KB/s 00:00
    Sending file modes: C0644 1441 feed-icon-32x32.png
    Sink: C0644 1441 feed-icon-32x32.png
    feed-icon-32x32.png 100% 1441 1.4KB/s 00:00
    debug1: fd 1 clearing O_NONBLOCK
    debug1: Transferred: stdin 11, stdout 4555, stderr 252 bytes in 0.8 seconds
    debug1: Bytes per second: stdin 13.0, stdout 5374.6, stderr 297.3
    debug1: Exit status 1
    debug1: compress outgoing: raw data 91, compressed 80, factor 0.88
    debug1: compress incoming: raw data 4892, compressed 4419, factor 0.90


    C'est donc par là que ça te coince:

    debug1: Sending command: scp -v -r -f /httpdocs/*
    debug1: channel 0: request exec

    La gelée de coings est une chose à ne pas avaler de travers.

Suivre le flux des commentaires

Note : les commentaires appartiennent à celles et ceux qui les ont postés. Nous n’en sommes pas responsables.