Skip to content

Instantly share code, notes, and snippets.

View gothburz's full-sized avatar
🎯
Focusing

Peter Girnus gothburz

🎯
Focusing
View GitHub Profile
@gothburz
gothburz / README.md
Created May 30, 2023 23:36 — forked from mcenirm/README.md
Remote desktop (RDP) via SSH tunnel (using Microsoft Remote Desktop for Mac)

Description

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.

Setup

# XCode Command Line Tools #
xcode-select --install
# Install Homebrew #
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
echo PATH=/usr/local/bin:/usr/local/sbin:$PATH >> ~/.bash_profile
source ~/.bash_profile
brew tap homebrew/versions