How to use LocalForward in ssh config file
If you don't want to type
ssh -L 3306:db.i88.ca:3306 proxy.i88.ca
everytime, you can put LocalForward in your ~/.ssh/config file:
Host proxy.i88.ca
LocalForward 3306 db.i88.ca:3306
# Tunnels that are set up upon login
#
# LocalForward "110:pop3.example.com:110"
# LocalForward "143:imap.example.com:143"
# LocalForward "25:smtp.example.com:25"
# RemoteForward "3000:localhost:22"
You can use DynamicForward like this: DynamicForward 1080
Comments
Post a Comment