LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 02-07-2019, 12:18 PM   #1
taylorkh
Senior Member
 
Registered: Jul 2006
Location: North Carolina
Distribution: CentOS 6, CentOS 7 (with Mate), Ubuntu 16.04 Mate
Posts: 2,127

Rep: Reputation: 174Reputation: 174
vnc over ssh - vinagre viewer question


Having used vnc for probably 20 years - windoze to windoze, windoze to Linux, Linux to windoze and Linux to Linux I FINALLY decided to make a connection via an ssh tunel My configuration consists of:

machine t25 running vncserver on Ubuntu Mate 18.04
machine t20 running vinagre on CentOS 7

I normally connect from t20 to the vncserver on t25 using the address t25:1 protocol VNC from vinagre. Works great.

I created an ssh tunnel between the machines by executing the following on t20
Code:
ssh -L 5901:localhost:5901 -N -f -l ken t25
I then connected from t20 to the vncserver on t25 from vinagre with the addrress 127.0.0.1:5901 and again the protocol VNC. Works great. I closed vnc-server on the firewall on t25 and went through the drill again to verify that I am connecting through the ssh tunnel and cannot connect outside the tunnel. Wow, I can not believe it was so easy

This brings me to my question... vinagre shows a protocol choice for SSH. Can someone please tell me what this is for? I did not need to use it to connect through my ssh tunnel. The help in vinagre shows very little. man vinagre deals with command line use and refers me to the "Vinagre help manual" which I am unable to locate. Gnome help tells me
Quote:
Some protocols allow you to see all available computers on your local network by clicking the Find button. This buttons will not be displayed if you do not have Avahi support.
I am not using Avahi so I do not believe this is relevant.

TIA,

Ken
 
Old 02-07-2019, 12:48 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,714

Rep: Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899
vinagre is a client that supports several protocols i.e VNC, SSH, RDP and SPICE. Since your tunneling VNC over ssh you need to connect as posted. I don't use it for ssh but its one advantage would be if you needed to connect to multiple servers at the same time without needing any options other then to specify the port.
 
Old 02-07-2019, 12:57 PM   #3
taylorkh
Senior Member
 
Registered: Jul 2006
Location: North Carolina
Distribution: CentOS 6, CentOS 7 (with Mate), Ubuntu 16.04 Mate
Posts: 2,127

Original Poster
Rep: Reputation: 174Reputation: 174
Thanks michaelk,

I am not sure I understand the advantage you describe. If I tunnel to server t25 over port 25001 and to server t23 over port 23001 I would still make my vinagre connections to 127.0.0.1:25001 and 127.0.0.1:23001 respectively and concurrently if desired (I think). I am not sure where the vinagre specified protocol comes into play - unless I am not configuring my tunnels correctly.

Ken
 
Old 02-07-2019, 01:02 PM   #4
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
I thou\ht avahi just announced open services to a network upon connection? Well, I'm sure it's configurable but the idea being you power up a device and anounce a service.
This is just my assumptions from seeing it mentioned so, please, don't take it as completely correct.
 
Old 02-07-2019, 01:35 PM   #5
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,714

Rep: Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899
Quote:
This brings me to my question... vinagre shows a protocol choice for SSH. Can someone please tell me what this is for?
Basically to connect to a ssh server. Forget about ports or tunneling. It is just a simple ssh client. Try it. Once logged in it acts like a terminal window.

Quote:
I am not sure where the vinagre specified protocol comes into play - unless I am not configuring my tunnels correctly.
Each service ssh,VNC,RDP etc uses a different protocol to communicate. vinagre is going to use whatever protocol you select and act like that particular client. The fact that you are tunneling VNC over ssh does not matter to vinagre. In your case it is unaware of the ssh tunnel.
 
1 members found this post helpful.
Old 02-07-2019, 02:29 PM   #6
taylorkh
Senior Member
 
Registered: Jul 2006
Location: North Carolina
Distribution: CentOS 6, CentOS 7 (with Mate), Ubuntu 16.04 Mate
Posts: 2,127

Original Poster
Rep: Reputation: 174Reputation: 174
Thanks again michaelk,

I just tried and connected to t25 with ssh protocol selected and I see a BIG bash terminal. This will be rather handy when running something like glances which in some cases needs a WIDE display. I guess vinagre can serve as a one stop shop for remote connections.

Now if only it would do 3270 emulation. No wait, I am retired and no longer need to do THAT stuff

And thanks to you 273. I have heard of avahi but have never tried it. It sort of reminds me of windoze discovery, the Master Browser etc. I am working hard to forget that stuff as well.

Cheers,

Ken
 
  


Reply



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
LXer: Vinagre 3.10 Beta 1 Implements the get_dimensions() Virtual Function for VNC/RDP LXer Syndicated Linux News 0 08-20-2013 07:03 PM
[SOLVED] Best image viewer,djvu viewer pdf viewer cd/dvd writer for debian 7 rubankumars Debian 2 05-15-2013 08:23 AM
Vinagre not working with reverse VNC connections fbobraga Linux - Newbie 5 02-26-2012 11:16 AM
VNC Over SSH | Linux laptop -> Linux SSH Server -> Windows VNC Server jakestaby Linux - Networking 3 01-28-2009 02:33 PM
LXer: Vinagre, An Excellent GNOME VNC Client LXer Syndicated Linux News 0 09-16-2007 01:11 PM

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

All times are GMT -5. The time now is 08:02 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
Open Source Consulting | Domain Registration