Skip to content

Instantly share code, notes, and snippets.

@horitaku1124
Last active December 21, 2015 00:38
Show Gist options
  • Save horitaku1124/6221294 to your computer and use it in GitHub Desktop.
Save horitaku1124/6221294 to your computer and use it in GitHub Desktop.
SSHポートフォワーディング
#!/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