Skip to content

Instantly share code, notes, and snippets.

@boobo94
Created February 23, 2018 09:24
Show Gist options
  • Save boobo94/1ba87d8da5c40bbb66b3119ee539ba9e to your computer and use it in GitHub Desktop.
Save boobo94/1ba87d8da5c40bbb66b3119ee539ba9e to your computer and use it in GitHub Desktop.
Connect to ftp on EC2 AWS with user and password

Here's what I did on a Ubuntu EC2:

A) Login as root using the keypairs

B) Setup the necessary users and their passwords with

$ sudo adduser USERNAME $ sudo passwd USERNAME

C) Edit /etc/ssh/sshd_config setting

For a valid user to login with no key PasswordAuthentication yes

Also want root to login also with no key PermitRootLogin yes

D) Restart the ssh daemon with

$ sudo service ssh restart

Now you can login into your ec2 instance without key pairs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment