[英]putty connect successfully, while pscp run into “server refused our key”
I create one SUSE linux EC2 instance in Amazon AWS. 我在Amazon AWS中创建了一个SUSE linux EC2实例。
And it is OK to 'putty' to access the instance (use the key-pair file, let's call it key.pem, I have converted it to key.ppk), and when log in the host, I am using 'root' user name, and it is OK. 并且可以通过“ putty”访问实例(使用密钥对文件,我们将其称为key.pem,我已经将其转换为key.ppk),并且在登录主机时,我正在使用“ root”用户名,就可以了。
login as: root Authenticating with public key "imported-openssh-key" Last login: Tue Apr 15 15:17:55 2014 from x.x.x.x SUSE Linux Enterprise Server 11 SP3 x86_64 (64-bit) As "root" use the: - zypper command for package management - yast command for configuration management Management and Config: https://www.suse.com/suse-in-the-cloud-basics Documentation: http://www.suse.com/documentation/sles11/ Have a lot of fun...
While when I try to use 'pscp' to copy files, it always failed, and outputs 当我尝试使用“ pscp”复制文件时,它总是失败,并输出
Server refused our key Using Keyboard-interactive authentication. Password:
My 'pscp' command usage as following 我的“ pscp”命令用法如下
C:\Users\t440s\Downloads\putty\pscp.exe -i key.pps test.txt root@myhost.compute.amazonaws.com:/tmp
Actually, I do not know my password. 实际上,我不知道我的密码。
And I checked following section of /etc/ssh/sshd_config, seems root do not need password 而且我检查了/ etc / ssh / sshd_config的以下部分,看来root不需要密码
# Authentication: #LoginGraceTime 2m PermitRootLogin without-password PasswordAuthentication no
I am using win8. 我正在使用win8。
Please help me. 请帮我。 Yours.
你的
I would like you should use Git Bash tool http://git-scm.com/download/win its free and opensource, Please download and install , You have Unix environment is windows :) now in the git bash type command ls to check where you are and now you can type this command in GIT bash 我想您应该使用Git Bash工具http://git-scm.com/download/win它的免费开放源代码,请下载并安装,您的Unix环境是Windows :)现在在git bash类型命令ls中进行检查您现在所在的位置,现在可以在GIT bash中键入此命令
scp -i /c/Users/USERNAME/Download/key.pem filename.txt ec2-user@ec2-81.1821.1..eu-west-1.compute.amazonaws.com:/tmp
You can replace the user ec2-user to ubuntu or any other which is associate to that machine I dont think root work. 您可以将用户ec2-user替换为ubuntu或与该机器关联的其他任何机器,我认为该机器无法正常工作。 Let me know is that works for you
让我知道这对你有用
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.