- Ubuntu / Debian Linux Regenerate OpenSSH Host Keys
- Run SSH In The background After Running a GUI Linux Application
Q. How can I run ssh (ssh gui) in the background after running a Linux GUI application? How do I run any UNIX x11 application in background with SSH Linux client?
A. You need to use ssh X forwarding. This is default feature of Open SSH client. All you have to do is run command as follows:
ssh {user@server-ip} -f -X {app-name}
Where,
- user@server-ip : Your remote login username and password
- -f : Requests ssh to go to background just before command execution. This is useful if ssh is going to ask for passwords or passphrases, but the user wants it in the background. This is the recommended way to start X11 programs at a remote site.
- -X : Enables X11 forwarding.
For example run xterm (x windows terminal) or xeyes - a follow the mouse X demo application and go into background , enter:
$ ssh vivek@d1.vpn.nixcraft.in -f -X xeyes
$ ssh vivek@d1.vpn.nixcraft.in -f -X xterms
$ ssh vivek@d1.vpn.nixcraft.in -f -X /opt/firefox/firefox
Featured Articles:
- 20 Linux System Monitoring Tools Every SysAdmin Should Know
- My 10 UNIX Command Line Mistakes
- 10 Greatest Open Source Software Of 2009
- Top 5 Email Client For Linux, Mac OS X, and Windows Users
- Top 20 OpenSSH Server Best Security Practices
- Top 10 Open Source Web-Based Project Management Software
- Top 5 Linux Video Editor Software
Want to read Linux tips and tricks, but don't have time to check our blog everyday? Subscribe to our daily email newsletter to make sure you don't miss a single tip/tricks. Subscribe to our weekly newsletter here!
- Email FAQ to a friend
- Download PDF version
- Printable version
- Comment RSS feed
- Last Updated: 06/16/08



{ 0 comments… add one now }