Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to connect to a server with SSH (a Debian installation in a VMware image). On that server I want to call gitk a repository viewer for git. What do I need to do to make this work?

share|improve this question
up vote 8 down vote accepted

To enable X11 forwarding on the server you need at least the xauth program.

  1. Install xbase-clients on the server (or the package that contains xauth)
  2. Connect to the server with SSH using the following command

    ssh -X servername

  3. Run the program

share|improve this answer

Also, check that X11Forwarding is set to yes in /etc/ssh/sshd_config (it is apparently the default in Debian).

share|improve this answer

As an addendum to Peter's correct answer:

If you're using Windows, you can install Cygwin/X to display remote X applications running locally, it's more transparent than remote desktop.

If you just want to execute a shell command remotely, it's "ssh user@hostname command". For even more info, see the man page for the ssh command, or see all the OpenSSH man pages. If you haven't yet used scp or ssh-agent, they will make your life easier.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.