LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-08-2013, 11:11 PM   #1
Predatorian
Member
 
Registered: Mar 2008
Location: currently, where ever the army takes me
Distribution: Debian Lenny/Ubuntu or Arch Linux
Posts: 145

Rep: Reputation: 28
Using SSH to forward other programs besides X


Is it possible? I have a server hosting MegaMek, and MekHQ, and my server is locked down pretty tight, and I haven't been able to undo my iptables configs. Its a Java game, and I wanted to konw if i could open and forward the GUI to my remote host. I'm running CentOS 6.4. Now, if I have to, I can start from scratch, but just let me know what I need to do.
 
Old 05-09-2013, 12:24 AM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.9, Centos 7.3
Posts: 17,418

Rep: Reputation: 2398Reputation: 2398Reputation: 2398Reputation: 2398Reputation: 2398Reputation: 2398Reputation: 2398Reputation: 2398Reputation: 2398Reputation: 2398Reputation: 2398
Do you not have root access? Possibly via sudo?
Ideally, you'd edit the iptables; in your case /etc/sysconfig/iptables (make a backup first).
Alternately, you may be able to use an ssh tunnel http://www.revsys.com/writings/quick...sh-tunnel.html
 
Old 05-09-2013, 12:28 AM   #3
Predatorian
Member
 
Registered: Mar 2008
Location: currently, where ever the army takes me
Distribution: Debian Lenny/Ubuntu or Arch Linux
Posts: 145

Original Poster
Rep: Reputation: 28
Trying to stay away from the iptables thing, thats a different post i made, but ok. I'll look at the page. It should be possible even if its not a standard X program?
 
Old 05-09-2013, 07:52 AM   #4
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,714

Rep: Reputation: 1280Reputation: 1280Reputation: 1280Reputation: 1280Reputation: 1280Reputation: 1280Reputation: 1280Reputation: 1280Reputation: 1280
Yes.

Forwarding ports by users is done to relay connections (any connection), it does require the server (sshd) to be configured to allow it. It is frowned upon by some managements as it prevents them from doing some network monitoring, and can violate some company security policies.

There are several guides for using ssh:

http://www.rzg.mpg.de/networkservice...ort-forwarding
http://www.debianadmin.com/howto-use...orwarding.html

Last edited by jpollard; 05-09-2013 at 08:01 AM.
 
Old 05-09-2013, 08:53 AM   #5
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 8,800
Blog Entries: 4

Rep: Reputation: 3081Reputation: 3081Reputation: 3081Reputation: 3081Reputation: 3081Reputation: 3081Reputation: 3081Reputation: 3081Reputation: 3081Reputation: 3081Reputation: 3081
While you can use SSH to do arbitrary tunneling, I would use OpenVPN (with a digital key, not a password / PSK!!) ... because, well, that's what VPN is really designed to do. (Plus, it's supported in both hardware and software.)
 
Old 05-09-2013, 09:06 AM   #6
Predatorian
Member
 
Registered: Mar 2008
Location: currently, where ever the army takes me
Distribution: Debian Lenny/Ubuntu or Arch Linux
Posts: 145

Original Poster
Rep: Reputation: 28
I'm not even sure that this will work the way I think it will because its a Java program, and I want to start it on my CentOS VM, then use my host machine and view the GUI on my desktop. The java program is typically ran on a computer, then uses another program to start a server daemon for other clients to connect to. Not sure if any of you have heard of MegaMek or not, but that is what the server daemon is. There is a program on top of that, MekHQ, that acts as a campaign manager and when "fighting" starts, it boots up the server, and then everyone connects to that. I want to put it on my VM to keep people from accessing my host computer.

I'll read through these pages, and the other one provided and see if I can figure something out. I'm not even sure if I'm making sense anymore. If anyone is confused, let me know.

Last edited by Predatorian; 05-09-2013 at 09:15 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ssh client can't forward from ::1 Skaperen Linux - Software 2 02-24-2010 08:52 AM
SSH-forward and openoffice Dinithion Linux - Server 5 11-27-2009 11:59 AM
Forward OS/X apps over ssh? djeikyb Linux - Software 1 03-25-2008 02:39 AM
SSH X forward firefox Cetko Linux - Networking 6 02-20-2008 02:53 AM
forward ssh serii Linux - Newbie 1 05-01-2005 03:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:27 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration