6

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, 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 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?
2
  • 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? May 23, 2013 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. May 23, 2013 at 14:15

1 Answer 1

5

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"
1
  • 2
    What if this doesn't work? Also connecting from a Linux client using SSH to OpenSSH installed on Windows 7. Tried running calc.exe using runas or PsExec.exe – the process shows up on the process list, but there is nothing on the screen of the logged in user. Jun 10, 2019 at 10:02

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .