openssh user@ vs -l precedence

Elan Ruusamae glen at delfi.ee
Mon Jul 16 10:10:07 CEST 2018


seems 7.7p1 introduced breaking change where if both user@ and -l provided


used to work:

GIT_SSH=wrapper ssh git at github.com

where wrapper is:


user=${SUDO_USER:-$USER}
exec ssh -x -a -oClearAllForwardings=yes -l $user ${1:+"$@"}

how it attempts to authenticate using glen@ not git@

$ git fetch upstream
glen at github.com: Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

$ git remote -v|grep ups
upstream        git at github.com:eventum/eventum.git (fetch)
upstream        git at github.com:eventum/eventum.git (push)


$ rpm -q openssh --blink

openssh-7.7p1-1.x86_64.rpm
         <= openssh-7.6p1-3.x86_64.rpm



More information about the pld-devel-en mailing list