Christopher H. - 2011-10-21

Hello,
i want to connect to a ssh server with user A and than change the user to B.
The Access via sftp should be with accessrights and as active user B.
Is there a way to get the current username other than via terminal?