I'd like to set up Pluggable Authentication Modules (PAM) so that I can sudo using my ssh key rather than typing in a password, a password that I shouldn't need because I have an ssh key.
In order to do that I would ssh by doing something like ssh -A username@your_server_ip
If you use putty, the option is here:

In theory, you know it works if you can type echo $SSH_AUTH_SOCK and it a value gets returned
I'd like to set up Pluggable Authentication Modules (PAM) so that I can sudo using my ssh key rather than typing in a password, a password that I shouldn't need because I have an ssh key.
In order to do that I would ssh by doing something like
ssh -A username@your_server_ipIf you use putty, the option is here:

In theory, you know it works if you can type
echo $SSH_AUTH_SOCKand it a value gets returned