Hi all! How do i set my boxes up if i want to run a remote application on my server and have the display on my workstation? Server: 192.168.0.1 Workstation 192.168.0.3 I want to be able to set up a shortcut on my desktop (KDE2) and not need to enter any passwords or such.. It is supposed to run as a "native" application"... Thankful for all help.. -- /Rikard --------------------------------------------------------------------------------- Rikard Johnels email : rjhn@linux.nu mob : +46 70 464 99 39 --------------------------Public PGP fingerprint------------------------------ < 15 28 DF 78 67 98 B2 16 1F D3 FD C5 59 D4 B6 78 46 1C EE 56 >
* Rikard Johnels (rjhn@linux.nu) [011106 16:40]:
How do i set my boxes up if i want to run a remote application on my server and have the display on my workstation? I want to be able to set up a shortcut on my desktop (KDE2) and not need to enter any passwords or such.. It is supposed to run as a "native" application"...
ssh -X remotehost /path/to/program/program Use RSA keys and the ssh-agent so you only need to type the passphrase once or, if your are trusting, run ssh-keygen -p and set a null (i.e., just press <CR> when prompted for the passphrase) passphrase. -- -ckm
On Wednesday 07 November 2001 01:45, Christopher Mahmood wrote:
ssh -X remotehost /path/to/program/program
I do have a functional ssh connection between the two. But as i run ssh server /usr/X11R6/bin/gkrellm i get: Gtk-WARNING **: cannot open display: server:10.0 And that does NOT happen if i log on to server and do export DISPLAY=192.168.0.3:0 (and ofcourse xhost + on the workstation) Then it works perfectly.. -- /Rikard --------------------------------------------------------------------------------- Rikard Johnels email : rjhn@linux.nu mob : +46 70 464 99 39 --------------------------Public PGP fingerprint------------------------------ < 15 28 DF 78 67 98 B2 16 1F D3 FD C5 59 D4 B6 78 46 1C EE 56 >
* Rikard Johnels (rjhn@linux.nu) [011106 17:12]: ->On Wednesday 07 November 2001 01:45, Christopher Mahmood wrote: -> ->> ssh -X remotehost /path/to/program/program -> ->I do have a functional ssh connection between the two. ->But as i run ->ssh server /usr/X11R6/bin/gkrellm ->i get: ->Gtk-WARNING **: cannot open display: server:10.0 -> ->And that does NOT happen if i log on to server and do ->export DISPLAY=192.168.0.3:0 ->(and ofcourse xhost + on the workstation) ->Then it works perfectly.. -> By default OpenSSH has X forwarding disabled..hence what Chris was saying about the -X option. With the -X option you should be able to just ssh to the host and execute the app. OpenSSH should take care of exporting the display for you. You shouldn't have to do xhost at all. :) So if you tend to run a lot of X apps over OpenSSH then you might want to put this in your .bashrc (or whatever shell you use)... alias <machine name>='ssh -X <user>@<machine name> The above is only need if you don't want to enable X forwarding by default..if you don't care..then just make it available all the time by editng your config files. :) Cheers. -----=====-----=====-----=====-----=====----- Ben Rosenberg mailto:ben@whack.org -----=====-----=====-----=====-----=====----- "Technological progress is like an axe in the hands of a pathological criminal" -AE
I know about the _X switch.. But by some reason it doesnt work anymore :( And i cant understand why... -- /Rikard --------------------------------------------------------------------------------- Rikard Johnels email : rjhn@linux.nu mob : +46 70 464 99 39 --------------------------Public PGP fingerprint------------------------------ < 15 28 DF 78 67 98 B2 16 1F D3 FD C5 59 D4 B6 78 46 1C EE 56 >
Rikard Johnels wrote:
I know about the _X switch.. But by some reason it doesnt work anymore :( And i cant understand why...
Hey I just saw this on Linux-Journal newsletter: Tech Tip Use ssh -n to run an X program from one computer on another. For example, ssh -n frodo gimp & will run the GIMP on the host frodo, but display locally. Using ssh for this is much easier and more secure than setting it up in X manually. By the Way... Linux Journal 1994-2000 Archive CD Now Available
participants (4)
-
Ben Rosenberg
-
Christopher Mahmood
-
Rikard Johnels
-
zentara