What to do if you should have set an ssh key but are prompted for a password

Overview

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.

Solution

http://www.linuxproblem.org/art_9.html 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.

that's all.

the end.

Recommended Posts

What to do if you should have set an ssh key but are prompted for a password
What to do if your Jupyter Notebook for beginners asks for a password or token
What to do if you are addicted to Windows character code
What to do if you lose your EC2 key pair
What to do if you get a Cannot retrieve metalink for repository error in yum
What to do if you get an error like dyld: mach-o, but built for simulator or dyld: attempt to run simulator program outside simulator (DYLD_ROOT_PATH not set) in golang
What to do if you get a minus zero in Python
What to do if you get a UnicodeDecodeError with pip install
If you should have pip installed but get an Import error
What to do if you couldn't send an email to Yahoo with Python.
What to do if you forget your login password on Manjaro Linux
What to do if you get a TypeError with numpy min, max
What to do if you get an error when trying to load mnist
What to do if fprintd requires a password when registering your fingerprint
What to do if you get an error when installing Dlib (Ubuntu)
What to do if you get an error like'Qstring' has already been set to version 1 using mne python
What to do if you have installed PyCharm but shortcut keys such as `control + e` do not work
What to do if you get a Permission denied (public key) error when trying to pull on Github
What to do if you get an error when trying to send a message in tasks.loop () immediately after startup
What to do if you get a "No versions found" error in pipenv
What to do if you can't pipenv shell
What to do if Django can't load an image from a static folder
What to do if you get an error when installing python with pyenv
What to do if you are told "Import Error: cannot import name'HTTPSHandler'" when building a virtual environment using virtualenv
What do you like about how to convert an array (list) to a string?
What to do if you get an "unknown service" error from your gRPC server
What to do if you get an OpenSSL error when installing Python 2 with pyenv
What to do if you get an error when importing matplotlib in Python (Mac)
What to do if you get an Import Error when importing matplotlib with Jupyter
What to do if you run python in IntelliJ and end with an error
No module named What to do if you get'libs.resources'
ModuleNotFoundError: No module What to do if you get'tensorflow.contrib'
What to do if a UnicodeDecodeError occurs in pip
What to do if you install openCV3 and make a symbolic link, but when you do "import cv2", "No module named'cv2'" appears
What to do if you have corrected the mistake in the IP address of the zone file but cannot connect to the DNS server
What to do if you get an Undefined error:'Module_six_moves_urllib_parse' object has no attribute'urlencode' on MacOS
What to do if you get an error when running "certbot renew" in CakePHP environment
What to do if you get an Undefined error when trying to use pip with pyenv
What to do if pip gives a DistributionError in Homebrew
How to generate a public key from an SSH private key
What to do if you get "coverage unknown" in Coveralls
What to do if you can't sort files with subscripts
What to do if a 0xC0000005 error occurs in tf.train.start_queue_runners ()
What to do if you can't log in as root
What to do if you can't use WiFi on Linux
ImportError: No module What to do when you are told
What to do if you get angry with'vertices' must be a 2D list ... in matplotlib arrow
[Django] What to do if the model you want to create has a large number of fields
What to do if you grep a text file and it becomes Binary file (standard input) matches
For those of you who don't know how to set a password with Jupyter on Docker
What to do if you get an error saying c compiler cannot create executables in configure
What to do if you get a must override `get_config` error when trying to model.save in Keras
What to do if you get angry if you don't have libxml / xmlversion.h when installing lxml on CentOS
What to do if pip --user returns an error in a virtual environment created with pyenv
What to do if Python doesn't work on Git for Windows
What to do if you can't install pyaudio with pip #Python
What to do if you can't build your project with Maven
What to do if you can't use the trash in Lubuntu 18.04.
What to do if you get a "Wrong Python Platform" warning when using Python with the NetBeans IDE
[Python] What to do if you get a ModuleNotFoundError when importing pandas using Jupyter Notebook in Anaconda
What to do if you get the error Input contains NaN, infinity or a value too large for dtype ('float64'). In machine learning