ssh 转发远程X窗口

2172阅读 0评论2010-02-27 haoyunbin
分类:LINUX

 
 
                            ssh 转发远程X窗口
远程服务器安装openssh-server 及openssh 包
并修改/etc/ssh/sshd_config文件添加如下内容
X11Forwarding yes
X11DisplayOffset 10
X11UseLocalhost yes

———————————————————————————————
保存退出.
重启ssh服务 service sshd restart
这样远程服务器就配置好了
 
本地配置(本地系统也是linux)
安装openssh-client,并在/etc/ssh/ssh_config文件中添加如下内容
ForwardX11    yes
ForwardX11Trusted    yes
————————————————————————————————
远程服务器及本地都配置好了
在本地远程服务器(在这假设远程服务器IP:122.226.223.63)
 
ssh -X 或 ssh -X -l root 122.226.223.63
 
上一篇:free bsd 使用手册
下一篇:grep 用法总结