Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to install KubeSphere via ks install kk on a fresh machine #244

Open
LinuxSuRen opened this issue Nov 29, 2021 · 0 comments
Open

Comments

@LinuxSuRen
Copy link
Contributor

The command is:

ks install kk --kubernetesVersion v1.21.5

The error output is:

time="10:40:52 CST" level=error msg="Failed to connect to 192.168.0.3: Failed to validate ssh connection parameters: Failed to read keyfile \"/root/.ssh/id_rsa\": open /root/.ssh/id_rsa: no such file or directory" node=192.168.0.3
time="10:40:52 CST" level=warning msg="Task failed ..."
time="10:40:52 CST" level=warning msg="error: interrupted by error"
Error: Failed to init OS: interrupted by error
Failed to init OS: interrupted by error

It still cannot work after I generated the ssh key with the following command:

ssh-keygen

the error output is:

time="10:57:28 CST" level=error msg="Failed to connect to 192.168.0.3: could not establish connection to 192.168.0.3:22: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey], no supported methods remain" node=192.168.0.3
time="10:57:28 CST" level=warning msg="Task failed ..."
time="10:57:28 CST" level=warning msg="error: interrupted by error"
Error: Failed to init OS: interrupted by error
Failed to init OS: interrupted by error

then, I put the content of /root/.ssh/id_rsa.pub into the end of /root/.ssh/authorized_keys. It works well.

Suggestion

I'd like to suggest doing all those work by the command ks install kk. So users don't need to do it over and over again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant