https://qiita.com/kenmaro/items/a548a302228029c5c870 In the previous article, create an ssh key and put it on the server to comfortably use docker in the remote server. I wrote the procedure to get ssh access.
At this time, if key authentication is performed, password authentication should not be required, What to do if you are asked for a password even though you have set it.
If you don't want to be asked for your password, you may be able to solve it below.
I referred to here. Very simple,
~ / .Ssh / authorized_keys on the remote server
Please check the permissions of.
In my case
sudo chmod 700 ~/.ssh
sudo chmod 640 authorized_keys
By doing, you will not be asked for password authentication when sshing.
I summarized it as a memorandum, but if you want to cut the troublesome procedure, please try it.