To avoid entering password on every login to remote server you can add your public ssh key to ~/.ssh/authorized_keys
on your server
To do so, first get your public key(usually it's ~/.ssh/id_rsa.pub
):
cat ~/.ssh/id_rsa.pub
Now copy it contents and on remote server run:
vi ~/.ssh/authorized_keys
and save the file(:wq
)
More info in this article: https://www.debian.org/devel/passwordlessssh