如何将文件从Amazon EC2 Linux VPS传输到Windows 7 Home PC

发布于 2024-12-05 06:07:39 字数 665 浏览 0 评论 0原文

好吧,我至少花了一周的时间试图解决这个问题,仔细查看,我看到了很多解决方案......问题是它们都不适合我。我有一个来自 amazon.com 的 Linux EC2 实例。我想将一些文件从该 vps 移动到我的计算机...我目前正在从 Putty 连接到它,但我已经尝试过 Filezilla 和很多其他类似的东西。当我使用命令

scp root@ip-xx-xx-xx-xx:/home/ec2-user/filefolder/folder-i-want-to-transfer C:/

我得到以下信息:

The authenticity of host 'ip-xx-xx-xx-xx (xx.xx.xx.xx)' can't be established.
RSA key fingerprint is xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'ip-xx-xx-xx-xx,xx.xx.xx.xx' (RSA) to the list of known hosts.
Permission denied (publickey).

如果可以的话请帮忙。

Ok i have spent atleast a week trying to get this solved, looked all over and I see alot of solutions... Problem is none of them work for me. I have a linux EC2 instance from amazon.com. I want to move some files from that vps to my computer... I am currently connecting to it from Putty but i have tried Filezilla and alot of other things like that. When I use the command

scp root@ip-xx-xx-xx-xx:/home/ec2-user/filefolder/folder-i-want-to-transfer C:/

I get the following:

The authenticity of host 'ip-xx-xx-xx-xx (xx.xx.xx.xx)' can't be established.
RSA key fingerprint is xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'ip-xx-xx-xx-xx,xx.xx.xx.xx' (RSA) to the list of known hosts.
Permission denied (publickey).

Please help if you could.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

策马西风 2024-12-12 06:07:39

我发现两个可能的问题:

  1. 您已通过 ssh 禁用 root 登录。
  2. 您正在使用您不想要的密钥。

我不会告诉你如何解决第一个问题;创建另一个用户帐户并通过该帐户传输文件。

对于第二个,您需要告诉您的工具不要使用任何密钥。

scp -i NUL: ...
scp -i /dev/null ...

然后您应该能够使用该帐户的密码登录。

I see two possible problems:

  1. You've disabled root logins via ssh.
  2. You're using a key that you don't want to.

I won't tell you how to solve the first; create another user account and transfer the files via that account instead.

For the second, you need to tell your tool to not use any key whatsoever.

scp -i NUL: ...
scp -i /dev/null ...

You should then be able to log in using the account's password.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文