cloudnativer / kube-install

一键安装k8s(kubernetes):二進位離線方式部署,支持定時安裝、添加與銷毀node、銷毀與修復master、一鍵卸載集羣等。Install k8s (kubernetes): one click offline installation of highly available multiple kubernetes cluster, supports schedule installation, addition of nodes, rebuild of kubernetes master, and uninstallation of clusters.
Apache License 2.0
422 stars 118 forks source link

kube-install init failed #46

Closed mtpkiss closed 6 months ago

mtpkiss commented 10 months ago

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
cloudnativer commented 7 months ago

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 ?