The Mac OS X native application do not use the X protocol for the rendering, but the Mac specific protocol. So you cannot use ssh X protocol forwarding as you could with a Linux workstation. As you discovered, the reverse is not true, you can install an X server on Mac OS X and have the Linux program appear on your Mac. SSH Reverse Tunnel on Mac OS X 7 minute read Phone Home. I want to always be able to securely connect to my Mac Book Pro anywhere in the world. The following guide will enable me to connect to the laptop if I leave it at home, leave it at work, or in the unfortunate event that someone steals it and the thief defeats File Vault full disk encryption. This is the best tutorial I’ve found about remote desktop over a SSH tunnel. Step 29, could be confusing for some. There the remote host is actually “calling home”. 127.0.0.1 is yourself = localhost. But the specified port on that host (“the machine you are using”) is bound to another host through the SSH tunnel.
Connect to remote desktop services via a bastion host using an SSH tunnel. Helpful when you have SSH access to a (eg, Linux) server with network access to the remote desktop hosts.
This works with Mac OS X, because it comes with SSH and Microsoft makes a pretty good RD client for Mac. The same overall approach should work with other SSH clients and other RD clients.
Note: This approach is not recommended for anyone. Instead, one should use a Remote Desktop Gateway (on Windows Server) or a real VPN. How to remove app in terminal mac.
Requires the following information:
- Hostname of the bastion host
- Hostnames of the remote desktop hosts, as viewed from the bastion host.
- Save
ssh-config-rdp
to~/.ssh/
and edit as indicated in file. - Save
rdp_via_bastion.bash
to preferred bin directory (eg,~/bin
or/usr/local/bin
) andchmod +x
. - Import
remote0_via_bastion.rdp
into Microsoft Remote Desktop app, then edit to fix name and other settings. - Repeat with
remote1_via_bastion.rdp
.
- Run
rdp_via_bastion.bash
to create the SSH tunnel. - Connect to saved session. Note: Expect complaints about certificate mismatch.
To add a new remote address, edit
~/.ssh/ssh-config-rdp
and add a new line:![Macos Ssh Tunnel App Macos Ssh Tunnel App](/uploads/1/3/4/2/134260463/416516008.png)
Then add a new saved session in Microsoft Remote Desktop app. https://uplehtq.weebly.com/blog/nettv-plus-app-mac. Be sure to match the localhost port number.
This post seems to follow on from my previous post regarding a quick and easy proxy server on Ubuntu! And sticks with the proxy theme quite nicely.
I’ve come across a couple of corporate VPN solutions that appear to open a SSH tunnel for the VPN and push all traffic down it accordingly. Sometimes it’s very useful to be able to test routing from a remote source, or to give your users a cheap and quick VPN. (As well as in this case the VPN and Firewall provider didn’t provide a native Mac VPN client.)
There is two different ways in which I use this system and a version for Windows users with PuTTY may following soon!
Using SSH as a SOCKS Proxy & VPN
Advantages: Secure and safe, encrypted tunnel, can be used with every application installed, cane be used for services other than HTTP.
Disadvantages: It doesn’t look as ‘nice’ as a proper VPN client.
Disadvantages: It doesn’t look as ‘nice’ as a proper VPN client.
Instructions
On your Mac open Terminal (Applications – Utilities – Terminal), and you’ll want to use the following syntax:
ssh -D 8080 [username]@[IP address or hostname]
If your SSH port is on a different port you’ll need the following:
ssh -D 8080 -p [port number] [username]@[IP address or hostname]
An example could be:
ssh -D 8080 [email protected] Apple mac standard apps.
Now change your SOCKS proxy, open up System Preferences (Applications – System Preferences), Network.
On the following box click Advanced.
How to find keychain passwords. In the next box that pops up you’ll want to tick the SOCKS Proxy option, and put the following entry in the text box 127.0.0.1 port 8080, like this:
Macos Ssh Agent
And now all your applications that are using the setting in the control panel will be able to use the VPN session, just don’t shut down the Terminal window, that is where the magic is happening!
Using SSH as a Secure HTTP Proxy
Advantages: Sometimes you don’t want all your traffic going in through a SSH tunnel, just specific HTTP traffic will do.
Disadvantages: Again firewall rules may impede your ability to do this and you can only go to one site at a time!
Instructions
On your Mac open Terminal (Applications – Utilities – Terminal), and you’ll want to use the following syntax:
ssh -L 2222:[website address]:[port] [username]@[IP Address or hostname]
An example could be:
ssh -L 2222:www.companya.com:80 [email protected]
Macos Ssh Tool
Now this method is far easier, you don’t need to make any settings in your System Settings, just open up a web browser and point it to: