亲爱的 ubuntu 社区,当我使用 scp 命令从远程服务器复制文件时(从我的家用电脑登录到服务器后),如下所示
scp -v CNTPEPRSOLIONSfullcputest.log [email protected]:~/
它要求输入 root 密码。我输入了 3 次,它都没有接受,然后我得到了Permission denied (publickey,gssapi-with-mic,password)
我发布的详细输出供您参考
问题该如何解决?
Executing: program /usr/bin/ssh host 127.0.0.1, user root, command scp -v -t ~/
OpenSSH_4.3p2, OpenSSL 0.9.8e-fips-rhel5 01 Jul 2008
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug1: Connecting to 127.0.0.1 [127.0.0.1] port 22.
debug1: Connection established.
debug1: identity file /home/vidhyasankar1685/.ssh/identity type -1
debug1: identity file /home/vidhyasankar1685/.ssh/id_rsa type -1
debug1: identity file /home/vidhyasankar1685/.ssh/id_dsa type -1
debug1: loaded 3 keys
debug1: Remote protocol version 2.0, remote software version OpenSSH_4.3
debug1: match: OpenSSH_4.3 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_4.3
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(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: Host '127.0.0.1' is known and matches the RSA host key.
debug1: Found key in /home/vidhyasankar1685/.ssh/known_hosts:1
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,gssapi-with-mic,password
debug1: Next authentication method: gssapi-with-mic
debug1: Unspecified GSS failure. Minor code may provide more information
Unknown code krb5 195
debug1: Unspecified GSS failure. Minor code may provide more information
Unknown code krb5 195
debug1: Unspecified GSS failure. Minor code may provide more information
Unknown code krb5 195
debug1: Next authentication method: publickey
debug1: Trying private key: /home/vidhyasankar1685/.ssh/identity
debug1: Trying private key: /home/vidhyasankar1685/.ssh/id_rsa
debug1: Trying private key: /home/vidhyasankar1685/.ssh/id_dsa
debug1: Next authentication method: password
[email protected]'s password:
答案1
如果你正在复制文件从你的偏僻的服务器
那你指定的地址为什么是当地的127.0.0.1
当从您的输入当地的提示符。命令应为
scp REMOTE_USER@REMOTE_ADDR:/remote/file/location /local/file/location