Skip to content

Instantly share code, notes, and snippets.

@wuhanstudio
Created December 12, 2019 07:13
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 wuhanstudio/957bc65898661ccb306107d26b05d414 to your computer and use it in GitHub Desktop.
Save wuhanstudio/957bc65898661ccb306107d26b05d414 to your computer and use it in GitHub Desktop.
SSH port forwarding configuration
# /etc/ssh/sshd_config
# Port forwarding
AllowAgentForwarding yes
AllowTcpForwarding yes
GatewayPorts yes
# X11
X11Forwarding yes
X11UseLocalhost no
# Keep alive
ClientAliveInterval 60
ClientAliveCountMax 5
@wuhanstudio
Copy link
Author

ssh -Y ubuntu@your.host.ip

Open images from remote terminal and display on local computer

eog test.jpg
feh test.jpg

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment