Resetting VNC server after Unable to connect to host: Connection refused ( 10061

Resetting VNC server after Unable to connect to host: Connection refused ( 10061) message

1)If your VNC session is on display:X(say, :1), then log into the linux
machine from another terminal (you may use a simple SSH login for this) onto
the same user that started the session, and type

vncserver -kill :X 

2) Then you may restart the session again with vncserver :

service vncserver stop

service vncserver start

3) You will get the error infomation. You must delete the files which gave by the error infomation.

then restart the vncserver again:

service vncserver stop

service vncserver start

all is OK!

 

你可能感兴趣的:(linux,ssh)