Re: how to figure out the username for ssh?



zix wrote:
Hi,
when I login via ssh to my linux machine, is there any way to know
my login name? Lets say, I have a user Alex, having uid and euid as
0,0(root user). Now, if I am logging via ssh, getlogin does not work.
If I do getuid, and proceed from there I will get it as root. Is there
any way to figure out that my user id is "Alex" and not root?


I usually use the "id" command.
.