LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-23-2017, 10:50 PM   #1
mtdew3q
Member
 
Registered: Mar 2006
Location: upstate NY
Distribution: fedora XFCE 24
Posts: 398

Rep: Reputation: 17
x11 forward ssh tunnel display xterm cygwin virtualbox


Hi-

I had mixed results.

I can do ssh -Y blaster@127.0.0.1 and connect. Then I can do xterm & and it displays an xterm in cygwin.

I have the vbox rules :

ssh 127.0.0.1 2250 mylinuxguestIP 22

in virtualbox.

I chose nat network.

However if I do putty to make a tunnel which looks like:

127.0.0.1 2250

L127.0.0.1:2250 mylinuxguestIP:22

I can connect with a tunnel, but I can't get xterm & to go to the correct display?

I know to check xllforwarding in putty but am sure what to put for the display. I thought it was localhost:0.

Is there a way I can use the command line to do this like

ssh -Y blaster@127.0.0.1 except with tunneling also?

Any help is greatly appreciated.

thx. - mtdew3q
 
Old 12-24-2017, 03:22 AM   #2
mtdew3q
Member
 
Registered: Mar 2006
Location: upstate NY
Distribution: fedora XFCE 24
Posts: 398

Original Poster
Rep: Reputation: 17
Hi-

I got ssh -L 22:yahoo.com:80 user@home syntax to work with a bridged adapter in virtualbox.

I can't get the same command to work in a nat network.

Any tricks to go from one to the other with the same configuration? I am blocked in nat network but not bridged?

I didn't change the ssh_config or sshd_config afterwards.

thx.- mtdew3q
 
Old 12-24-2017, 04:29 AM   #3
michaelk
Moderator
 
Registered: Aug 2002
Posts: 19,508

Rep: Reputation: 3130Reputation: 3130Reputation: 3130Reputation: 3130Reputation: 3130Reputation: 3130Reputation: 3130Reputation: 3130Reputation: 3130Reputation: 3130Reputation: 3130
NAT behaves just like a physical router. It blocks all incoming traffic unless unless you setup port forwarding rules. In the network setup select advanced.

Last edited by michaelk; 12-24-2017 at 04:32 AM.
 
1 members found this post helpful.
Old 12-24-2017, 04:39 AM   #4
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 13,570

Rep: Reputation: 4335Reputation: 4335Reputation: 4335Reputation: 4335Reputation: 4335Reputation: 4335Reputation: 4335Reputation: 4335Reputation: 4335Reputation: 4335Reputation: 4335
the problem is that putty has no any idea about your display, so X11 forwarding is more or less meaningless.
ssh -Y (from cygwin) created a virtual display on the remote host which was redirected to the local, real display.

You can try to login with ssh -Y and check how display is set and use that display from putty too (without disconnecting that ssh session).
Or you need to create something similar to ssh -Y, which is redirecting port 6010 (=virtual display :10) on the remote host to localhost:6000, but it may depend on how your local display (Xwin) was configured.
 
1 members found this post helpful.
Old 12-24-2017, 06:43 AM   #5
mtdew3q
Member
 
Registered: Mar 2006
Location: upstate NY
Distribution: fedora XFCE 24
Posts: 398

Original Poster
Rep: Reputation: 17
Hi Pan64 and michaelk:

I am going to stick with just using the bridged adapter. It works. I banged my head enough against the wall for one session.

Thx. and have a cool Sun.

mtdew3q
 
  


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
x11 forward display+ssh+putty ixion2600 Linux - Desktop 3 08-19-2013 04:29 PM
SSH and X11 using Cygwin/X rizhun Linux - Software 4 09-27-2006 08:38 AM
problems with Cygwin X tunnel through ssh kooshball Linux - Software 1 09-09-2005 12:23 PM
Tunnel x11 thru SSH XaViaR Linux - General 8 07-27-2005 12:30 PM
Cygwin/Xwin - SSH tunnel? jackster Linux - Security 1 01-26-2005 04:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:53 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