如何解决为什么我在 Redhat 中拒绝了 VNC 连接?
在 RHEL-7 中拒绝 VNC 连接。我在日志中看到以下内容
debug2: fd 12 setting TCP_NODELAY
debug3: fd 12 is O_NONBLOCK
debug3: fd 12 is O_NONBLOCK
debug1: channel 3: new [direct-tcpip]
debug3: send packet: type 90
debug3: receive packet: type 92
channel 3: open failed: connect failed: Connection refused
debug2: channel 3: zombie
debug2: channel 3: garbage collecting
debug1: channel 3: free: direct-tcpip: listening port 5901 for 10.58.0.153 port 5901,connect from 127.0.0.1 port 51072 to 127.0.0.1 port 5901,nchannels 4
debug3: channel 3: status: The following connections are open:
#2 client-session (t4 r0 i0/0 o0/0 e[write]/0 fd 9/10/11 sock -1 cc -1)
这里,channel 3: open failed: connect failed: Connection refused
。
我已经将 AllowTcpForwarding 设置为 yes。
sudo grep AllowTcpForwarding /etc/ssh/sshd_config
AllowTcpForwarding yes
然后也确实重启了sshd服务。
sudo systemctl restart sshd
那为什么 VNV 客户端连接不上?
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。