Installation

Install SSH server on Ubuntu:

sudo apt install openssh-server

Passwordless Login

Create SSH key on local machine (located at ~/.ssh by default):

ssh-keygen -t rsa -b 4096

Copy public key to server:

ssh-copy-id username@ip_address

Test:

ssh username@ip_address

References

https://linuxize.com/post/how-to-setup-passwordless-ssh-login/