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:
- You've disabled root logins via ssh.
- 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.
精彩评论