I'm trying to set up sshd to do some funky things on a dedicated server. (Which is to say, don't worry about why I'm asking such a strange question; I'm just experimenting to see how I can abuse OpenSSH.)
I'd like to allow a user to log into the system using a made-up name. For instance:
$ ssh email@example.com
where there's no (UNIX) user on the system named
When they connect, I'd like them to be logged in as a user which does exist, named
guest, and have something in the environment set to
joeschmoe so I know who they logged in as.
Is it possible to decouple the notions of UNIX-user and ssh-user?