Created
December 12, 2019 07:13
-
-
Save wuhanstudio/957bc65898661ccb306107d26b05d414 to your computer and use it in GitHub Desktop.
SSH port forwarding configuration
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /etc/ssh/sshd_config | |
# Port forwarding | |
AllowAgentForwarding yes | |
AllowTcpForwarding yes | |
GatewayPorts yes | |
# X11 | |
X11Forwarding yes | |
X11UseLocalhost no | |
# Keep alive | |
ClientAliveInterval 60 | |
ClientAliveCountMax 5 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ssh -Y ubuntu@your.host.ip
Open images from remote terminal and display on local computer
eog test.jpg
feh test.jpg