简体   繁体   English

腻子连接成功,而pscp遇到“服务器拒绝我们的密钥”

[英]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.

相关问题 无法通过腻子和Winscp连接服务器 - Unable to connect server via putty and winscp Unix服务器客户端连接:连接被拒绝 - Unix server client Connect: Connection refused annot 与服务器通信:发布 http://localhost/v2/snaps/discord:拨打 unix /run/snapd.socket:连接:连接被拒绝 - annot communicate with server: Post http://localhost/v2/snaps/discord: dial unix /run/snapd.socket: connect: connection refused 尝试使用腻子在我的Linux专用服务器上运行optipng和jpegoptim - Trying to run optipng and jpegoptim on my linux dedicated server using putty 无法连接到腻子和Winscp - cannot connect to putty and winscp 使用带有 Putty 私钥的 Runtime.exec 连接到远程 linux 系统 - To connect to remote linux system using Runtime.exec with Putty private key 在没有服务器调用'accept'的情况下,可以在套接字上成功“连接”调用吗 - Can 'connect' call on socket return successfully without server calling 'accept'? 无法通过toad或linux终端轻松连接的Linux服务器上的toad连接mysql db? - Not able to connect mysql db by toad on linux server which it is easily connected by putty or linux terminal? 将pscp文件从窗口服务器复制到远程linux服务器 - copy pscp a file from window server to to remote linux server 请调试 SSH 代理命令,它无法在 PuTTY 上使用 multihop SSH 连接远程服务器 - Please debug SSH Proxy Command, it cannot connect remote server with multihop SSH on PuTTY
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM