Skip to content

Instantly share code, notes, and snippets.

@definedrisk
definedrisk / ssh-tunneling.md
Last active August 4, 2021 18:16
SSH Tunnelling Ports and Firewall Rules

SSH Tunnelling Ports and Firewall Rules

Setup SSH server machine ready to accept -R remote tunnel request

Add Microsoft KM-TEST Loopback Adapter for required extra server connections using hdwwiz.exe:

  1. Edit properties and disable everything except TCP/IPv4.
  2. Set an IP e.g. 192.168.2.123 with subnet mask 255.255.255.0 and disable NetBIOS.
  3. Add an Interface Metric of 9999 such that it is lowest priority.
  4. Ensure SMB v1 is disabled (Turn Windows features on or off).
@definedrisk
definedrisk / openssh-windows-guide.md
Last active October 13, 2021 08:48
OpenSSH for Windows ssh (forward and reverse) tunnelling and port forwarding

OpenSSH for Windows ssh (forward and reverse) tunnelling and port forwarding

Windows 10 Version 20H2 19042.1151 (updated Aug 04 2021)

TL;DR

Access servers inside a network (e.g. Work-PC) through an encrypted ssh session from a Home-PC (without requiring a VPN). The only requirement is that the Work-PC user account has admin rights and can make ssh connections (not blocked by a firewall) to an external (internet) IP address.

Summary