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

Subscribe
Share

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 :)


Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

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.

OpenSSH should already be installed on all droplets. You can add a new linux user by running:

sudo adduser newusername