Create a localhost alias

It is often helpful to be able associate a private IP address with the local loopback. This may be required to allow references to host services from within the private network space of a Docker container for example. Configure a Local Network Interface in Mac OSX We will associate a private IP address 10.10.10.100 with the lo0 (127.0.0.1) network interface of our Mac. Create /Library/LaunchDaemons/ca.epbc.loopback-dev.plist: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.

Create an SSH Tunnel to a Remote Service

Let’s say there is a remote service – maybe a Postgres or MySQL database server – running on a network that doesn’t expose the service port. If you have SSH access to a host on that network – let’s call it jump – and jump can access the service, it is possible to create what is called an SSH tunnel through jump to the remote service. Here’s how. Let’s use the example of accessing Postgres on its usual port 5432 on host pgsrv on the same network as jump.