Skip to content

Instantly share code, notes, and snippets.

@imakin
Created November 30, 2025 14:20
Show Gist options
  • Select an option

  • Save imakin/37aca543bc82951e8ddb50a8d806f526 to your computer and use it in GitHub Desktop.

Select an option

Save imakin/37aca543bc82951e8ddb50a8d806f526 to your computer and use it in GitHub Desktop.
Forward thispc listening port to the cloudpc

SSH port forwarding

izzulmakin 2025

ssh -R 8022:localhost:22 user_in_cloud@domain_address.com

forward anything that goes in localhost:22 (localhost, port 22) to server domain_address.com port 8022

for example. current WindowsPC is serving ssh server at :22, then do ssh -R 8022:localhost:22 user_in_cloud@domain_address.com

then other laptop can ssh to WindowsPC with ssh -p 8022 username_in_windowspc@domain_address.com

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment