I'm following this tuturial to setup key-based access to the SSH
I created a user. I add copy the key to the client via
ssh-copy-id <username>@<host> Becasuse
ssh <username>@<host> still prompts for a password I run
ssh-add on the local machine. The terminal doens't prompt for a password, I can login without using a password.
But I cannot run
su anymore. Every input for the password results in
I tried it again. But before coping the key, I added to the sudoer file. Copied key, ssh-add. But now I cannot login to my SSH shell att all?
How can I setup a key-based SSH access with the possibiluty to use