I want to trasfter a folder from a remote machine: 202.117.48.57 to local machine:202.118.45.65
when I ssh to the remote machine, I have to use a RSA passphrase, and I'm able to ssh into that machine, but if I use scp to copy files from that machine to local, I fail:
Code:
[esolve@pkt comment]$ scp -v -r esolve@202.117.48.57:/home/lab/file_folder ./
Executing: program /usr/bin/ssh host 202.117.48.5, user esolve, command scp -v -r -f -- /home/esolve/youtube/comments/fat
OpenSSH_5.8p2, OpenSSL 1.0.0j-fips 10 May 2012
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug1: Connecting to 202.117.48.5 [202.117.48.5] port 22.
debug1: Connection established.
debug1: identity file /user/esolve/home/.ssh/id_rsa type -1
debug1: identity file /user/esolve/home/.ssh/id_rsa-cert type -1
debug1: identity file /user/esolve/home/.ssh/id_dsa type -1
debug1: identity file /user/esolve/home/.ssh/id_dsa-cert type -1
debug1: Remote protocol version 2.0, remote software version OpenSSH_5.9p1 Debian-5ubuntu1
debug1: match: OpenSSH_5.9p1 Debian-5ubuntu1 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_5.8
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-ctr hmac-md5 none
debug1: kex: client->server aes128-ctr hmac-md5 none
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192) 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: Server host key: RSA 4c:db:4f:80:ca:c4:9a:17:44:fc:1f:07:d3:f3:1e:d7
debug1: Host '202.117.48.5' is known and matches the RSA host key.
debug1: Found key in /user/esolve/home/.ssh/known_hosts:8
debug1: ssh_rsa_verify: signature correct
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: Roaming not allowed by server
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey
debug1: Next authentication method: publickey
debug1: Trying private key: /user/esolve/home/.ssh/id_rsa
debug1: key_parse_private_pem: PEM_read_PrivateKey failed
debug1: read PEM private key done: type <unknown>
Enter passphrase for key '/user/esolve/home/.ssh/id_rsa':
debug1: read PEM private key done: type RSA
debug1: Authentications that can continue: publickey
debug1: Trying private key: /user/esolve/home/.ssh/id_dsa
debug1: No more authentication methods to try.
Permission denied (publickey).
I also use another way like below, still fail:
Code:
root@lab:/home/lab# scp -r file_folder esolve@202.118.45.65:/home/local/
ssh: connect to host 202.118.45.65 port 22: No route to host
lost connection
what is wrong with this? thanks!
~