Feb 22, 2012 Hello, Thank you for reading my post. My problem is about running a program on a remote Windows machine via SSH. I have: (A) - a Windows XP machine running an OpenSSH server. Using SSH to run program remotely - HELP!!! Hi I am trying to do a client/server java application as part of a Masters degree - and as i have to demonstrate the application on the university's unix system i want to at least ftp all my files over there and work remotely running and compiling the java frok home so i know it runs on the network.
Active3 years, 1 month ago
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 FilesGIMP 2bingimp-2.8.exe' or start /d 'C:Program FilesGIMP 2bin' 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.
patryk.beza
patryk.bezapatryk.beza
77733 gold badges1313 silver badges2727 bronze badges
1 Answer
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 Drew ChapinDrew Chapin
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.
3,9941111 gold badges3535 silver badges5858 bronze badges
Not the answer you're looking for? Browse other questions tagged windows-7sshremote-access or ask your own question.
Active4 years, 2 months ago
This question already has an answer here:
Ssh Execute Command And Exit
I've tried to search this topic in google, but without any significant results.
I need to start some GUI app from terminal, but I don't care what this app is showing me. In addition, I need to start few instances of this application in different sessions. It's connected with some GUI automated tests, so I know what I want and I'm looking for an answer :).
I think the proper steps should be:
but I'm stuck at first step. does anybody here had similar problem?
--- EDIT:1) I don't care about GUI output - i need only stdout and stderr from my app. - that's why this question is not duplicate - know google well :) . I don't want to redirect output to my own GUI.
Paweł Wojtal
Paweł WojtalPaweł Wojtal
marked as duplicate by Maythux, Eric Carvalho, Pilot6, Anwar, Volker SiegelJun 17 '15 at 7:53
This question has been asked before and already has an answer. Omron cx programmer 9. If those answers do not fully address your question, please ask a new question.
3 Answers
If you don't care to see what the application is doing, you can supply it with a 'virtual' x server with xvfb:
Xvfb provides an X server that can run on machines with no display hardware and no physical input devices. It emulates a dumb framebuffer using virtual memory. The primary use of this server was intended to be server testing, but other novel uses for it have been found, including testing clients against unusual depths and screen configurations, doing batch processing with Xvfb as a background rendering engine, load testing, as an aid to porting the X server to a new platform, and providing an unobtrusive way to run applications that don't really need an X server but insist on having one anyway.
After installing it, you can start it with:
it'll run in the background, then you start your clients with:
roadmrroadmr
28.6k55 gold badges6767 silver badges8383 bronze badges
A short command:
from
man ssh
Execute Program Via SshA.B.
72.3k1212 gold badges184184 silver badges274274 bronze badges
You just need to run export DISPLAY=:id# in your ssh session and programs run will run on the remote display. A quick example:
Now
gedit will run on the user named testSSH display
Putty Ssh Execute Command
You can shorten this all down into single command:
MaythuxMaythux
Ssh Execute Remote CommandExecute Program Via Ssh Windows 10
54.5k3535 gold badges183183 silver badges225225 bronze badges
Python Execute Ssh CommandNot the answer you're looking for? Browse other questions tagged command-linexorgsshguitelnet or ask your own question.Comments are closed.
|
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |