LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   vnc over ssh - vinagre viewer question (https://www.linuxquestions.org/questions/linux-software-2/vnc-over-ssh-vinagre-viewer-question-4175647830/)

taylorkh 02-07-2019 12:18 PM

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 :redface: 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

michaelk 02-07-2019 12:48 PM

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.

taylorkh 02-07-2019 12:57 PM

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

273 02-07-2019 01:02 PM

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.

michaelk 02-07-2019 01:35 PM

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.

taylorkh 02-07-2019 02:29 PM

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 :D

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


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