How do I set up an sftp user to login with a password to an EC2 ubuntu server ?

Posted by Doron on Server Fault See other posts from Server Fault or by Doron
Published on 2011-02-05T15:03:29Z Indexed on 2011/02/05 15:27 UTC
Read the original article Hit count: 315

Hello,

I have an Ubuntu Server running on an EC2 instance. To login to that server I use a certificate file without any password.

I've installed and configured vsftpd and created a user (let's call him "testuser") for which I've set a /bin/false ssh terminal so it will only be able to connect via sftp and upload/access files on his home directory.

However - when I try to connect to the server from my computer, running

sftp testuser@my-ec2-server

I get

Permission denied (publickey).
Connection closed

messages so I can't log in.

How can I remove the certificate requirement for this user only (meaning, the "ubuntu" user will still have to use the certificate file to login via ssh), so normal sftp clients will be able to connect using a username and a password ?

Thank you.

PS Using Ubuntu Server 10.10 official AMI from canonical, 64bit on a micro instance.

© Server Fault or respective owner

Related posts about ubuntu

Related posts about certificate