开发者

How to transfer files from an amazon EC2 linux vps to a windows 7 home pc

开发者 https://www.devze.com 2023-04-05 08:21 出处:网络
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

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.


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消