![]() when you’re out at a coffee shop on a sniffable insecure wireless network, or in a country with laws forbidding access to free information.) Or you may wish to hide the fact from the administrator of your local network that you are connecting to this server (e.g. Often this is a server you are not allowed to access from your own machine, e.g. It is just any host on the Internet that you can access from ssh_server_host. It does not have to be under your control, nor does it have to be the machine that you’re SSHing into. For example, if this is a web site, it could be or. The fully-qualified domain name or the IP address of the server that is hosting the service that you wish to connect to. ![]() Ports above 1024 are freely available for any user to listen on. If this is one of the reserved ports (i.e., under 1023), you will have to run your ssh tunnel command as root (using sudo). The port on your local machine that your local program expects to be able to connect to. Some of them may be omitted if the defaults are used, but I have included all of them in the example above to cover the most general case. Now for the various parameters used in the command above. L local_port: service_host: service_port \ Feel free to type it all on a single line (after removing the line numbers and the line-break markers ( "\") of course!)Ģ. I’m splitting the command over several lines and adding line numbers to illustrate the details and separate the parts of the long-ish command for easier explanation. ![]() The command itself is just a single line the devil is in the parameters. In the past, I have set up port forwarding on Linux, Mac OS X and Windows, so I was a little worried that it took me about an hour trying to appease the SSH deities (and daemons). Home → Blog → SSH Port Forwarding on Mac OS X SSH Port Forwarding on Mac OS XĪfter spending about an hour configuring what should, in theory, be a simple matter, I figured I’d write a blog post that might one day save another soul an hour or so from his or her life. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |