TigerVNC / tigervnc

High performance, multi-platform VNC client and server
https://tigervnc.org
GNU General Public License v2.0
5.11k stars 936 forks source link

Remember credentials when reconnecting #1688

Open JohnFarl opened 11 months ago

JohnFarl commented 11 months ago

Often the VNC connection is lost and it is really annoying to confirm reconnection and log in again every time this happens. It should be added a configurable option that allows you to configure automatically reconnection on lost connection and relative max connection attempts.

CendioOssman commented 11 months ago

As you say, you will likely need to log in again as part of the reconnect. So triggering it automatically might not be a good idea, as the user might not be present or notice the reconnect, so they can enter the login details before the connection times out.

JohnFarl commented 11 months ago

As you say, you will likely need to log in again as part of the reconnect. So triggering it automatically might not be a good idea, as the user might not be present or notice the reconnect, so they can enter the login details before the connection times out.

You can either make this configurable with an autologin option. Disconnections could be very frequent if the connection speed slow down and doesn't seem there is a way to increase some timeout to make it more conservative, and login every time is awfully annoying. An integrated credential manager would make the login less annoying too.

CendioOssman commented 11 months ago

I'm afraid it's up to the operating system to decide when to give up on a TCP connection, so it's not something we can control from TigerVNC. At least not making it less sensitive. :/

Just to make sure we are talking about the same thing; you are saying that not having to press "yes" on the reconnect dialog, even if you still have to specify the login details again, is a substantial improvement for you?

CendioOssman commented 8 months ago

No response. Closing.

JohnFarl commented 7 months ago

@CendioOssman Sorry. I have missed your reply. I'm talking about storing session credentials, so that in case connection is lost when you see something as "connection lost, try to reconnect?"... on confirm, without need to re-type username and password on every re-connection attempt, if connection is available, you are connected again. Having to press "yes" on the reconnect dialog is not a problem, be forced to re-input the credentials every time in case of shaky connection is the deal breaker.

CendioOssman commented 7 months ago

Ah, then I understand.

That could probably be resolved. There is a security risk with remembering credentials, though. But that should be possible to handle by asking the user if the credentials should be remembered for reconnects.