解决Windows用vnc连接Ubuntu时出现The connection was refused by the host computer问题
2016-10-18 16:54
8559 查看
问题情境:
项目服务器为Ubuntu,为了方便管理,使用vnc远程连接Ubuntu,在Ubuntu上并没有什么特殊设置,好像Ubuntu自带了vnc的相关软件,好像叫vino-什么的,反正没有详细看,然后安装了dconf-editor,这个网上有很多教程,总之配置好了之后,我在Windows上安装了vnc直接就可以远程连接Ubuntu了。但是使用了一段时间之后突然出现了这个问题The connection was refused by the
host computer,一番搜索之后终于解决。
直接在shell上输入:
echo $DISPLAY
export DISPLAY=:0
dbus-launch --exit-with-session gsettings set org.gnome.Vino enabled true
dbus-launch --exit-with-session gsettings set org.gnome.Vino prompt-enabled false
dbus-launch --exit-with-session gsettings set org.gnome.Vino require-encryption false
/usr/lib/vino/vino-server
就可以了。
参考文章连接:http://askubuntu.com/questions/304017/how-to-set-up-remote-desktop-sharing-through-ssh
项目服务器为Ubuntu,为了方便管理,使用vnc远程连接Ubuntu,在Ubuntu上并没有什么特殊设置,好像Ubuntu自带了vnc的相关软件,好像叫vino-什么的,反正没有详细看,然后安装了dconf-editor,这个网上有很多教程,总之配置好了之后,我在Windows上安装了vnc直接就可以远程连接Ubuntu了。但是使用了一段时间之后突然出现了这个问题The connection was refused by the
host computer,一番搜索之后终于解决。
直接在shell上输入:
echo $DISPLAY
export DISPLAY=:0
dbus-launch --exit-with-session gsettings set org.gnome.Vino enabled true
dbus-launch --exit-with-session gsettings set org.gnome.Vino prompt-enabled false
dbus-launch --exit-with-session gsettings set org.gnome.Vino require-encryption false
/usr/lib/vino/vino-server
就可以了。
参考文章连接:http://askubuntu.com/questions/304017/how-to-set-up-remote-desktop-sharing-through-ssh
相关文章推荐
- VNC Viewer:The connection was refused by host computer
- Windows上使用SecureCRT软件连接Linux终端 — 解决问题;The remote system refused the connection
- Windows上使用SecureCRT软件连接Linux终端 — 解决问题;The remote system refused the connection
- secureCRT连接ubuntu问题- The remote system refused the connection
- Ubuntu 安装配置SSH(ssh: connect to host localhost port 22: Connection refused问题的解决)
- 【排障】nagios出现问题connection refused by host
- Android SDK更新过程中出现connection refused 或者 error问题(Windows 和Ubuntu安装过程中的问题)
- 解决Azure publish “the remote desktop configuration was not generated by windows azure Tools”问题
- Ubuntu通过vnc连接Windows主机的问题解决
- SSH连接GitHub出现 ssh: connect to host github.com port 22: Connection refused解决方法
- VNC连接ubuntu10.04出现白屏问题解决
- secureCRT连接ubuntu有关问题- The remote system refused the connection
- 在ubuntu中配置SSH(解决connect to host localhost port 22: Connection refused问题)
- 在ubuntu中配置SSH(解决connect to host localhost port 22: Connection refused问题)
- 关于Putty连接Linux出现Network error:Connection reset by peer LINUX问题解决
- secureCRT连接ubuntu问题- The remote system refused the connection
- Ubuntu 安装配置SSH(ssh: connect to host localhost port 22: Connection refused问题的解决)
- 解决Azure publish “the remote desktop configuration was not generated by windows azure Tools”问题
- secureCRT连接ubuntu问题- The remote system refused the connection
- 在ubuntu中配置SSH(解决connect to host localhost port 22: Connection refused问题)