开发者

Permission denied (publickey). Couldn't read packet: Connection reset by peer

hi im configuring ftp on amazon Ec2 micro linux instance but i found error

Permission denied (publickey). Couldn't read packet: Connection reset by peer

i have install vsftpd on my instance,configure fire wall open port 21, 2020 e开发者_运维百科dit vsftpd.conf enabled anonymous login = false

add user to my instance,when i login with my user above error occur,

help me what im doing wrong and where is the problem, why this error occurs.thank in advance.


I had a similar problem, if I remember rightly I solved it by changing from passive to active mode.


Make sure the folder you're connecting to is owned by root and no other user/group has write priveleges:

sudo chown root:root /home/ftpuser/
sudo chmod 755 /home/ftpuser/

You can debug connection errors by using

sftp -vvv ftpuser@12.34.56.78
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜