Now I noticed that VNC works if I connect without SSH. I can still SSH in with keys though.ĮDIT: Restarted vncserver, but it still says 'already in use. Worked! Then I went back to my own computer and could not do VNC from there anymore. It's a simple VNC server and you won't have to mess around with Gnome settings or 500 firewalls, just install x11vnc on all your computers (with puppet or whatever you're using for mass-control). As another example, VNC session number 2 corresponds to port number 5902.) 2. 3 Answers Sorted by: 6 I'm a fan of x11vnc. Key Points We can set up a secure VNC connection with an SSH tunnel All of our SSH traffic goes through port 22 Traffic to our VNC server is encrypted Our. This corresponds to a 'port' number of 5906. If your session number is 12, you would use 5912 instead. (In the examples in the links below, we assume this to be 6. On your local machine, open up a command prompt and type something like this: where 5906 is what you would use if your VNC session number was 6. Oct 7 06:24:17 pokip sshd: error: connect_to localhost port 5901: failed.Ĭhannel 3: open failed: connect failed: Connection refusedĪnother thing I did before it stopped working was to create a pair of keys on my wifes computer and VNC into the server from there to my usual sudo account on the server. Log in to the server with your SSH client and create a new VNC session (or look up your existing session). Then launch the viewer, and simply type localhost for the Remote. I find this in the log after attempting to connect with TigerVNC Client: To connect, first launch PuTTY and open the session you created using the instructions above. Ssh -L 5901:localhost:5901 īind :5901: Address already in useĬhannel_setup_fwd_listener_tcpip: cannot listen to port: 5901 Here's what I get when trying to establish the SSH tunnel: I use Debian 10 and tightvnc server with tigervnc client. Do you guys have any idea why VNC stopped working after setting up SSH for authenticating with keys only?
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |