How to commit as your username when working remotely on a server WAY 1: RemoteCommand CLIENT: set the RemoteCommand in ~/.ssh/config Host AwesomeServer HostName host.example.com User ubuntu ForwardAgent yes RemoteCommand GIT_AUTHOR_NAME="The Boss" GIT_AUTHOR_EMAIL=boss@example.com $SHELL RequestTTY yes WAY 2: SetEnv SERVER: edit /etc/ssh/sshd_config to accept GIT_ variables and restart sshd AcceptEnv LANG LC_* GIT_* CLIENT: set the SetEnv in ~/.ssh/config Host AwesomeServer HostName host.example.com User ubuntu ForwardAgent yes SetEnv GIT_AUTHOR_NAME="The Boss" GIT_AUTHOR_EMAIL=boss@example.com