Failed to add the host to the list of known hosts (/home/dev/.ssh/known_hosts). Permission denied (publickey).
では、
sudo chmod 777 -R ~/.ssh/
とあるがそれだと
fatal: The remote end hung up unexpectedly
なので、
sudo chmod 700 -R ~/.ssh/
にした。
Failed to add the host to the list of known hosts (/home/dev/.ssh/known_hosts). Permission denied (publickey).
では、
sudo chmod 777 -R ~/.ssh/
とあるがそれだと
fatal: The remote end hung up unexpectedly
なので、
sudo chmod 700 -R ~/.ssh/
にした。