如何将文件从亚马逊EC2 linux vps传输到Windows 7家用电脑

时间:2021-09-19 21:18:54

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

好吧,我花了至少一个星期试图解决这个问题,看了一遍,我看到了很多解决方案......问题是它们都不适合我。我有来自amazon.com的linux EC2实例。我想将一些文件从那个vps移动到我的电脑......我目前正在从Putty连接它,但我尝试过Filezilla以及其他类似的东西。当我使用命令

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

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.

如果可以,请帮忙。

1 个解决方案

#1


0  

I see two possible problems:

我看到两个可能的问题:

  1. You've disabled root logins via ssh.
  2. 您已通过ssh禁用了root登录。

  3. You're using a key that you don't want to.
  4. 你正在使用一个你不想要的密钥。

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.

然后,您应该可以使用帐户的密码登录。

#1


0  

I see two possible problems:

我看到两个可能的问题:

  1. You've disabled root logins via ssh.
  2. 您已通过ssh禁用了root登录。

  3. You're using a key that you don't want to.
  4. 你正在使用一个你不想要的密钥。

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.

然后,您应该可以使用帐户的密码登录。