kube-install
kube-install copied to clipboard
kube-install init failed
help please
[root@Centos7_6 kube-install]# cat /etc/redhat-release
CentOS Linux release 7.6.1810 (Core)
[root@Centos7_6 kube-install]# ./kube-install -init -ostype "centos7"
Initialization in progress, please wait...
Notice: If you are prompted to enter the password below, please enter the root password again!
2024/01/10 15:42:05 Error waiting for command execution: exit status 127......
[Error] 2024-01-10 15:42:05.394895694 +0800 CST m=+2.765850800 Initialization failed ! There is a problem with the local SSH key.
Recommendations:
If the SSH port of the host is not "22", use the "-sshport" to specify the correct port.
(Please try again with root user)
Initialization failed!
[root@Centos7_6 kube-install]# netstat -ntlp | grep sshd
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 181932/sshd: /usr/s
tcp6 0 0 :::22 :::* LISTEN 181932/sshd: /usr/s
[root@Centos7_6 kube-install]# whoami
root
This may be due to residual SSH keys or configuration issues:
--Can you try deleting the entry in ~/.ssh/known_hosts ?
--Try setting other configuration parameters such as PermitRootLogin or /etc/ssh/ssh_config ?