ightvncserver: Как мне подключиться через SSH / Encryption?

2769
Winterflags

Я работаю tightvncserverна своем компьютере с Linux в моей домашней сети.

Я подключаюсь к нему с помощью Mac (также в домашней сети), который в данный момент работает Real VNC Viewer. Когда я подключаюсь, я получаю уведомление о том, что соединение не зашифровано.

Я понимаю, что tightvncserverподдерживает SSH. Я сгенерировал пару ключей SSH, которые я использую для этих двух компьютеров.

Как я могу подключиться к серверу VNC через SSH?

0

2 ответа на вопрос

1
Koutheir Attouchi

Connect to the target computer using SSH and forward the ports needed for VNC from the localhost to the target computer, then connect to those ports on the localhost, and communication will be encrypted in the SSH tunnel. The VNC client might still claim that data is unencrypted because it might not be aware of the SSH tunneling.

1
Thawn

you need to tunnel the vnc port via ssh like this:

 ssh -L 5900:localhost:5900 user@host.com 

then, while leaving the terminal window open, on the client machine connect to localhost with your real vnc viewer.