〖Linux〗使用ssh登录远程主机,并在本地打开远程图形界面

时间:2021-08-16 17:01:35

1. 修改/etc/ssh/sshd_config文件,设置允许TCP转发和X11转发

AllowTcpForwarding yes
X11Forwarding yes

2. 登录无图形远程主机,并允许图形转发

ssh -q -X user@remotehost

3. 测试是否成功

gedit &

以上提到的本机环境为Debian 7.1.0 wheezy(如果是Windows还需要其他的设置)

参考资料:

http://www.linuxtopia.org/online_books/linux_system_administration/debian_linux_guides/debian_linux_reference_guide/ch-tune.en_031.html