[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Probléme ssh



Bonjour la liste,

		J'ai un petit probléme avec scp:
afin de faire un 'cron' qui copie un fichier entre deux machines, il faudrait que le mot de passe
de l'utilisateur (root) ne soit pas demandé.

Les 2 machines connaissent leurs clés (known_hosts) et l'utilisateur à bien mentionné le nom
des 2 machines dans les .shosts .

Cela fonctionne de machine B -> machine A (par miracle ?) mais pas de A -> B ce qui m'importe.

voiçi le log (désolé un peu long) :

Executing: host machB, user (unspecified), command scp -v -t /tmp/fichier
SSH Version 1.2.26 [i586-unknown-linux], protocol version 1.5.
Standard version.  Does not use RSAREF.
machA: Reading configuration data /etc/ssh/ssh_config
machA: ssh_connect: getuid 0 geteuid 0 anon 0
machA: Connecting to machB [addresse I.P.] port 22.
machA: Allocated local port 1022.
machA: Connection established.
machA: Remote protocol version 1.5, remote software version 1.2.26
machA: Waiting for server public key.
machA: Received server public key (768 bits) and host key (1024 bits).
machA: Host 'machB' is known and matches the host key.
machA: Initializing random; seed file /root/.ssh/random_seed
machA: Encryption type: idea
machA: Sent encrypted session key.
machA: Installing crc compensation attack detector.
machA: Received encrypted confirmation.
machA: Trying rhosts or /etc/hosts.equiv with RSA host authentication.
machA: Remote: Accepted by .shosts.
machA: Remote: Your host key cannot be verified: unknown or invalid host key.
machA: Remote: The host name used to check the key was 'machA.domain.xxx'.
machA: Remote: Try logging back from the server machine with the canonical host name using ssh, and then try
+again.
machA: Server refused our rhosts authentication or host key.
machA: No agent.
machA: Trying RSA authentication with key 'root@machA'
machA: Server refused our key.
machA: Doing password authentication.


Qu'ai-je oublié ?

Merci.


Reply to: