The first mistake you encounter might be
Macintosh:Permissions 0755 for '/User/xxxx/.ssh/id_rsa' are too open.
Linux:Permissions 0755 for '/home/xxxx/.ssh/id_rsa' are too open.
This means that your private key permissions are too large, so only you need to operate
sudo chmod 600 ~/.ssh/id_rsa sudo chmod 600 ~/.ssh/id_rsa.pub
The known_hosts file has a problem with permissions when you encounter the following situation
Are you sure you want to continue connecting (yes/no)?yes Failed to add the host to the list of known hosts
Execute this command
sudo chmod 644 ~/.ssh/known_hosts
Finally, to get your.ssh folder permissions right, execute the following command
sudo chmod 755 ~/.ssh
Then your.ssh folder and the private and public key permissions within it are resolved!
Read More:
- Sudo: unable to resolve host solution
- Error Ubuntu file permission not enough (RM)
- An idea to solve Warning move_uploaded_file, failed to open stream in the process of php uploading files
- MySQL failed to start prompt: job failed to start
- “Permission denied” error in Oracle10g installation
- CONDA error notwritableerror: the current user does not have write permissions
- Method of modifying file and folder permission by Chmod command in Linux
- Ultimate solution to error reporting of sudo rosdep init of ROS
- How to Install Python 3 in Centos7 Quickly
- ansible Q&A: Failed to connect to the host via ssh: ssh_exchange_identification and Authentication or per
- Solution to the exception of PEM file logging in EC2
- How to solve the SNMP error of cacti
- [Solved] socket.gaierror: [Errno 8] nodename nor servname provided, or not known
- Rsync: failed to exec SSH: no such error in remote Rsync
- Shell curl command reported an error: (60) SSL certificate problem: self signed certificate
- Xftp transfer file error
- How to Fix ”is not in the sudoers file“ in Linux
- seaborn.load_ Data set error urlerror: < urlopen error [winerror 10060] the connection attempt failed because the connecting party did not reply correctly after a period of time or the connected host did not respond
- The software of Final Cut Pro x 10.5 failed to open, and it flashed back directly.
- Ubuntu reads the shared folder under windows Unable to mount location Failed to retrieve share list from server