Failed to Copy the RSA Key When Creating a Kunpeng Application Project
Symptom
The RSA key fails to be copied.
Figure 1 Failed to copy the RSA key
Possible Causes
- After password-free login is configured, the tool generates a known_hosts file that records information about the connected target node in the user directory (/home/devkit/.ssh/). Due to system environment changes, the file cannot be connected to the new system, and the message "Host key verification failed" is displayed.
- The SELinux enforcing mode is enabled in the OS, resulting in that the secure computing application project fails to be created.
- The SSH port number is incorrect.
Troubleshooting Procedure
- Check the known_hosts file in the user directory and delete the target node information.
- Disable the SELinux enforcing mode temporarily or permanently.
- Disabling the SELinux enforcing mode temporarily
- Query the SELinux status.
1sestatus
If the value of Current mode is enforcing, the SELinux enforcing mode is enabled.
- Set the SELinux mode to permissive.
1setenforce 0
- Query the SELinux status again.
If the value of Current mode is permissive, the SELinux enforcing mode is disabled temporarily.
The setting becomes invalid after the server is rebooted. When the tool is used, service exceptions may occur.
- Query the SELinux status.
- Disabling the SELinux enforcing mode permanently
- Query the SELinux status.
1sestatus
If SELinux status is enabled, SELinux is enabled.
- Open the /etc/selinux/config file.
1vi /etc/selinux/config - Press i to enter the insert mode and change SELINUX=enforcing to SELINUX=disabled.
- Press Esc, type :wq!, and press Enter to save the file and exit.
- Restart the server.
1reboot
- Query the SELinux status again.
- Query the SELinux status.
- Disabling the SELinux enforcing mode temporarily
- Enter the correct SSH port number.
Parent topic: FAQs