Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I've installed freeSSHd server on Windows 7. It works fine but when I try launching any graphical executables via SSH (e.g. "C:\Program Files\GIMP 2\bin\gimp-2.8.exe" or start /d "C:\Program Files\GIMP 2\bin" gimp-2.8.exe), the program (GIMP) starts in the background and no windows are displayed. I can see the program running in the Windows Task Manager, though. I am connecting to the host from an OpenSSH client running on Debian.

  • Why are graphical applications not visible to the user when launched from an SSH session?
  • How can I launch a graphical application from an SSH connection so that the user logged into the host PC can interact with it?
share|improve this question
2  
Are the you expecting to interact with the graphical application from the host (the PC running freeSSHd server), or from the client (remote PC that you connected from)? What SSH client are you using to connect to the host? –  druciferre May 23 '13 at 1:31
    
I expect to open Gimp's window on the host remotely from client's console. Host is using freeSSHd SSH server, client is Linux Debian's SSH. I don't expect any interaction with Gimp from client, besides launching Gimp. –  patryk.beza May 23 '13 at 14:15

1 Answer 1

up vote 4 down vote accepted

I'm not familiar with freeSSHd, but it most likely runs as a service. Starting with Windows Vista, services no longer share the same "session" with the logged on user, so any graphical application that is started by a service will be displayed in a separate session and will be invisible to the logged on user.

You should use the runas command when launching GIMP and specify the username and password of the user logged into the host PC. This will make GIMP start in the logged on user's session so that they can see and interact with it.

runas /user:username "C:\Program Files\GIMP 2\bin\gimp-2.8.exe"
share|improve this answer

Your Answer

 
discard

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.