Any idea why VNC stopped working after setting up SSH for authenticating with keys only? (No password)
I use Debian 10 and tightvnc server with tigervnc client. It has worked nicely until now.
Here's what I get when trying to establish the SSH tunnel:
ssh -L 5901:localhost:5901 [email protected] bind [127.0.0.1]:5901: Address already in use channel_setup_fwd_listener_tcpip: cannot listen to port: 5901 Could not request local forwarding.
I find this in the log after attempting to connect with TigerVNC Client:
/var/log/auth.log Oct 7 06:24:17 pokip sshd[4686]: error: connect_to localhost port 5901: failed.
channel 3: open failed: connect failed: Connection refused
Another 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. Worked! Then I went back to my own computer and could not do VNC from there anymore. I can still SSH in with keys though.
netstat -antp|grep 5901
-L
, so the listening port would be on the local side.Address already in use
refers to the local side.