How to Setup OpenSSH on Ubuntu server

October 13, 2015 1.3k views
Linux Commands VPN Deployment

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.


1 comment
  • 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).

    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

    Hope this helps!
    Welcome to the World of Linux!
    Happy Hosting :)

1 Answer

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

sudo adduser newusername
Have another answer? Share your knowledge.