Question
How to Setup OpenSSH on Ubuntu server
I am a novice in SSH and linux.
I got a server and I would like to setup openSSH on it. The SSH should listen to port 443 and I would also like it to authenticate using userame and password. However, I would like to add more than one user name to it. Please what setups should I take and how should I go about it.
Thanks
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
×
Hi Yourboydajoe,`
It seems like you may want to actually setup different user accounts on your server and then create passwords for those individual user accounts. Just a note, typically a webserver with SSL runs on port 443 and an OpenSSH server runs on port 22.
Here is a Digital Ocean tutorial on how to create new users, and how to give them super user privileges.
(I am assuming that you are running ubuntu or Debian but if not just search for how to add users in (your os).
https://www.digitalocean.com/community/tutorials/how-to-add-and-delete-users-on-an-ubuntu-14-04-vps
Once you complete that tutorial you can change accounts from root (which I am assuming you are logged into) to whatever account you just created by typing:
su - joe (or whatever you named your account)
and then passwd
If you want to change your default ssh port this is a pretty simple tutorial
https://www.atlantic.net/community/howto/change-your-ssh-port-in-ubuntu-and-debian/
Hope this helps!
Welcome to the World of Linux!
Happy Hosting :)