Skip to content

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

@LinuxSuRen

Description

@LinuxSuRen

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions