Create SSH User on EC2 Bitnami Wordpress
November 11th, 2018
- SSH on to the server using our PEM key
ssh -i /Users/our_user/.ssh/our_pem_file.pem [email protected]
- Create another user so we’re not using ubuntu, bitnami or root
CREATE USER ‘our_new_user@‘localhost' IDENTIFIED BY ‘some_strong_password’;
or CREATE USER 'our_new_user'@'%' IDENTIFIED BY 'some_strong_password';
- Give the new user all privileges
GRANT ALL PRIVILEGES ON *.* to our_new_user@localhost IDENTIFIED BY 'some_strong_password' WITH GRANT OPTION;
- Flush privileges to
FLUSH PRIVILEGES;
- Exit
Exit;