Last active
December 21, 2015 00:38
-
-
Save horitaku1124/6221294 to your computer and use it in GitHub Desktop.
SSHポートフォワーディング
This file contains hidden or 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
#!/bin/bash | |
#ローカルの8080番ポートにアクセスするとリモートの80番に転送される | |
#http://localhost:8080/ にアクセスすると http://1.2.3.4:80/ の内容が表示される。 | |
ssh -L 8080:localhost:80 [email protected] -p 22 -i /path/to/id_rsa |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment