I have a bookmark for a remote file over ssh thus:
/ssh:remoteuser@remote-server|sudo:remoteuser:/etc/apache2/apache2.conf
After much messing around this entry in my authinfo.gpg file allowed tramp toprovide the sudo password for "remoteuser" on the remote-server:
machine remoteuser port sudo login root password remote-user-sudopassword
The problem I have is that this authinfo line isnt specific to remote-server : the host/machinename is in fact the remoteuser id. What does this mean? It means that the sudo password for "remoteuser" must be the same on all machines where remoteuser operates. Is there some alias/mapping i can do in auth-sources/tramp to enable me to have different authinfo lines for tramp sudo accreditation for "remoteuser"?