Contents
- 1 How to run X Window graphical application over SSH session?
- 2 Is it possible to Runas a program in another windows terminal session?
- 3 How to use Remote GUI access over SSH?
- 4 Where does ssh connect to a remote host?
- 5 How to start a remote Linux PC via SSH?
- 6 Is there a way to specify’$ display’when SSH with X forwarding?
How to run X Window graphical application over SSH session?
Once you are logged in to server1, if you type the X application command over ssh session, the application will run on server1 and display will appear on your desktop system. For example, run xeyes or open office program: server1 $ xeyes &. server1 $ ooffice &. Within few seconds, you should get a graphical display on your desktop system.
Is it possible to Runas a program in another windows terminal session?
For simplicity, let’s say the user Administrator is logged in in terminal session 2. Another user Boda is logged in terminal session 3. Is it possible to runas a program in session 3 from session 2?
How to run CMD.EXE in another session?
Example: Remote session, logged on as Administrator; using qwinsta to enumerate sessions and psexec to start cmd.exe on another session. Another session: logged on as Patrick, with the cmd.exe window on the desktop opened by Administrator (which the window title reveals too).
Is it possible to run Runas as another user?
However, you should be able to use runas to run it as another user. This can be archived using Sysinternals tools from Microsoft. Beside running lists of commands and scripts remotely, they are useful for lot of things. As admin they had been my savior on multiple occasions.
How to use Remote GUI access over SSH?
As you can tell we have the Windows machine connected on 127.0.0.1:3389. Simply running rdesktop on 127.0.0.1 should open Windows on our Linux machine. Now you can close Netcat and use remote desktop over ssh encryption. I should note here that leaving an open shell like I’ve just done can pose a high security risk.
Where does ssh connect to a remote host?
The -R parameter is used to tell ssh this is going to a remote host. The 3390 number we are connecting back to here is the port on our Linux machine. We can’t use 3389 as that port is already in use by xrdp. Obviously 127.0.0.1 is the loopback address on the Windows machine. 3389 is the port on the Windows machine we need to forward back to Linux.
Which is the port of the SSH server?
Obviously port 22 is our ssh server. 3389 is the port of the rdesktop server that waits for connections. The other is a port for our RDP client use to connect and view from.
How to disconnect from SSH but leave the application running?
If you want to disconnect from ssh but leave the application running you need to launch it in a special way using something like screen (keeps the ssh session running in the background) or nohup, or another method. For more information on this there was recently another question on it.
How to start a remote Linux PC via SSH?
You just need to run export DISPLAY=:0 (or whatever the remote display is numbered as) in your ssh session and programs run will run on the remote display.
Is there a way to specify’$ display’when SSH with X forwarding?
If some user is already using 10, then it will be 11, etc) Now my question is: is there a way to specify a number for x when doing ssh -X, like 100.