Skip to content

Instantly share code, notes, and snippets.

@iguoli
Last active September 13, 2017 07:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iguoli/dad997c63ca1b2d0eb59517594030875 to your computer and use it in GitHub Desktop.
Save iguoli/dad997c63ca1b2d0eb59517594030875 to your computer and use it in GitHub Desktop.
X11 Forwarding

编辑ssh服务器端sshd_config文件

sudo vim /etc/ssh/sshd_config
X11Forwarding yes

在ssh客户端使用-X选项开启X11转发

ssh -X oracle@ssh_server

如果出现Warning: untrusted X11 forwarding setup failed: xauth key data not generated,可以使用

ssh -Y oracle@ssh_server
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment