Quote:
Originally Posted by michaelk
|
You can even do that via ~/.ssh/config as well. The following connects Firefox to port 9999 on the remote system using a tunnel from port 8888 on the local system:
Code:
Host nickname
HostName server.example.com
User fender1988
Port 22
LocalForward 8888 localhost:9999
IdentityFile ~/.ssh/private_key
PermitLocalCommands yes
LocalCommand firefox --new-tab http://localhost:8888/
Firefox gets launched upon successful login to the remote system.
For now -N is needed when you launch it.
Very recent OpenSSH clients will allow
SessionType to be set in the configuration file so that -N is not needed.