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

FATA[2022-01-06T04:06:46-08:00] failed to install AppArmor service: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey], no supported methods remain #3

Open
Ghostwritten opened this issue Jan 6, 2022 · 2 comments

Comments

@Ghostwritten
Copy link

Ghostwritten commented Jan 6, 2022

export SSH_USERNAME=root
export SSH_PASSPHRASE=123456
export SSH_PERM_FILE=/root/.ssh/id_rsa

$ kubectl apparmor-manager init
I0106 04:06:46.144739 49894 k8s.go:77] Creating a CRD: apparmorprofiles.crd.security.sysdig.com
FATA[2022-01-06T04:06:46-08:00] failed to install AppArmor service: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey], no supported methods remain

why?

@Kaizhe
Copy link
Collaborator

Kaizhe commented Feb 12, 2022

Does your k8s worker node support SSH connection with private key?

@amitpawarcbg
Copy link

export SSH_USERNAME=root export SSH_PASSPHRASE=123456 export SSH_PERM_FILE=/root/.ssh/id_rsa

$ kubectl apparmor-manager init I0106 04:06:46.144739 49894 k8s.go:77] Creating a CRD: apparmorprofiles.crd.security.sysdig.com FATA[2022-01-06T04:06:46-08:00] failed to install AppArmor service: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey], no supported methods remain

why?

you need to copy "/root/.ssh/id_rsa.pub" from Master node to "/root/.ssh/authorized_keys" on Master node.
On Master node:

*$ cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys

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

3 participants