I'd like to use a Mac to operate a VNC server that was launched on the Linux side.
For tunneling and connecting to the machine, PuTTY is used.
59xx ports are associated with the appropriate localhost unused ports.
When the connection is complete, I tried to connect to the VNC server using the Finder function.
Failed to connect to "localhost". Make sure screen sharing or remote management is enabled on the remote computer
The message failed to connect.
I've also enabled screen sharing from my system's preferences, but I can't connect in the same way.
Does this mean that there are other items that need to be permitted?
Or do you mean that the tunneling method was wrong before the connection?
The following are my perceptions and procedures for connecting to VNC.
The VNC server has started and is in the acceptance state.
VNC number 1 is up and the port number is 5901.
SSH connection tunneling used PuTTY.
The PuTTY tunneling configuration is as follows.
·The source port number is 1101
"·The destination port number is ""Destination IP address: 5901""
"
We believe that this completes the connection between port 1101 on the client side and port 5901 on the server side.
SSH connection was successful when configuration was complete.
Verifying successful connection.<> connection was successful connection.
Finally, connect to the Mac's "Finder->Move->Server"
vnc://localhost:1101
I tried to connect by typing .
I received the above message of connection failure.My knowledge of SSH and MacOS is at the beginner level, but I would appreciate it if you could let me know.
I did a similar configuration using Windows to verify that I was able to connect to the VNC server.
I used UltraVNC Viewer for the VNC viewer.
In the first place, when installing PuTTY for Mac, there was no installer for Mac on the download page, so I installed it with reference to the video (How to install Putty on Mac).
Therefore, I would like to think about the compatibility between Mac and PuTTY.
I made a mistake in describing the port number in this question. The correct number is 1011.
I tried 1101, and the connection was successful.
We sincerely apologize for the incorrect description.
There seems to be a difference in port numbers that can be configured between Mac and Windows.
I would like to use a slightly larger number from now on.
Client side
SSH connection tunneling used PuTTY.
The PuTTY tunneling configuration is as follows.
·The source port number is 1101
"·The destination port number is ""destination IP address: 5901""
What happens if the shipping address is "localhost:5901"?
I don't know which implementation (what type) of VNC server I started with, but
With the VNC server started on the server side,
$netstat-an | grep:5901 | grep LISTEN
What are the results of ?
tcp00 127.0.0.1:59010.0.0.0:*LISTEN
I thought it might be bound so that only localhosts can be accepted as shown in .
Other possibilities include not limiting the IP address and
tcp 00 0.0.0.0:5901 0.0.0.0:*LISTEN
You may be waiting for a connection only with the IP address of a particular network card.
tcp00 (specific IP address): 59010.0.0.0: *LISTEN
© 2024 OneMinuteCode. All rights reserved.