FG
💻 Software

How to make Shared Keys .ssh/authorized_keys and sudo work together?

Fresh5 days ago
Mar 15, 202625895 views
Confidence Score0%
0%

Problem

I've setup the .ssh/authorized_keys and am able to login with the new "user" using the pub/private key ... I have also added "user" to the sudoers list ... the problem I have now is when I try to execute a sudo command, something simple like: it will prompt me for my password, which I enter, but it…

Error Output

$ sudo cd /root

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: How to make Shared Keys .ssh/authorized_keys and sudo work together?

Low Risk

What you want to do is possible but it will require some experience as you will have to compile a PAM module called pam-ssh-agent-auth. The process is reasonably simple: The edit the sudo configuration: Add the following: Continue by changing the su…

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment