|
|
|
|
||||||
| comp.security.ssh SSH secure remote login and tunneling tools. |
![]() |
|
|
LinkBack | Outils de la discussion |
|
|
#1 |
|
Messages: n/a
Hébergeur: |
Hi,
I'm trying to scp some files between two remote servers. I use a command like: scp -i ssh_key root@comp1:/path1/file1 root@comp2:/path2/ This returns the error "Host key verification failed" and then I lose the connection. Running in verbose mode tells me that the verification fails for the destination server (comp2). However, I know that the host key that I specify is correct for both servers. I can successfully: ssh -i ssh_key root@comp1 ssh -i ssh_key root@comp2 My ssh key has a passphrase and I use ssh-keychain (an OSX app) to manage the passphrases for my sessions. Any ideas what I'm doing wrong? Cheers, complext |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
>
> Hi, > I'm trying to scp some files between two remote servers. I use a > command like: > scp -i ssh_key root@comp1:/path1/file1 root@comp2:/path2/ > > This returns the error "Host key verification failed" and then I lose > the connection. Running in verbose mode tells me that the verification > fails for the destination server (comp2). > > However, I know that the host key that I specify is correct for both > servers. I can successfully: > ssh -i ssh_key root@comp1 > ssh -i ssh_key root@comp2 > > My ssh key has a passphrase and I use ssh-keychain (an OSX app) to > manage the passphrases for my sessions. > > Any ideas what I'm doing wrong? The "host key" is not the key you're using for client authentication. Check /etc/ssh/ssh_known_hosts or ~/.ssh/known_hosts for a mismatched key labelled with the server hostname and/or address. -- Richard Silverman res@qoxp.net |
|
![]() |
| Outils de la discussion | |
|
|