choosing user on the target VNC server

Asked by Nicolas Jungers on 2009-08-20

How do I log in a remote server as a different user than the one I'm on my local host? The user@host form doesn't work and I'm unable to find any information on the subject.

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu vinagre Edit question
Assignee:
No assignee Edit question
Last query:
2009-08-20
Last reply:
2009-08-21
Stefhen (res0nat0r) said : #1

If you are using vncviewer just pass it the -user flag, from the manpage:

-user username

User name for Unix login authentication. Default is to use current Unix user name. If this option was given, the viewer will prefer Unix
login authentication over the standard VNC authentication.

vncviewer also has built in ssh tunneling with the -via option:

$ vncview otheruser@remotehost :1

Will ssh to remotehost as otheruser and connec to VNC display :1

Stefhen (res0nat0r) said : #2

If you are using vncviewer just pass it the -user flag, from the manpage:

-user username

User name for Unix login authentication. Default is to use current Unix user name. If this option was given, the viewer will prefer Unix
login authentication over the standard VNC authentication.

vncviewer also has built in ssh tunneling with the -via option:

$ vncviewer otheruser@remotehost :1

Will ssh to remotehost as otheruser and connec to VNC display :1

Stefhen (res0nat0r) said : #3

Oops, it should be of the form:

$ vncviewer -via otheruser@remotehost :1

Can you help with this problem?

Provide an answer of your own, or ask Nicolas Jungers for more information if necessary.

To post a message you must log in.