Minimal Setup Ubuntu SSH User/Pass Login in 3 Steps

Warning: this is not secure at all, only for testing things out.

Step 1: Create User/pass

sudo useradd my-temp-user
sudo passwd my-temp-user
sudo mkdir /home/my-temp-user// Grant perm
sudo chgrp my-temp-user /home/my-temp-user
sudo chown my-temp-user /home/my-temp-user

Step 2: Enable password login in SSHD

sudo vim /etc/ssh/sshd_config

Looking for this line, change it from no to yes

PasswordAuthentication yes

Then restart it to take effect

sudo systemctl restart sshd

Step 3: Done test login with the new user

ssh my-temp-user@10.1.2.3

Bingo now we logged in with the new user

--

--

Co-founder and Coder at work !

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store