this post was submitted on 17 Oct 2023
2 points (100.0% liked)

Self-Hosted Main

504 readers
1 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

For Example

We welcome posts that include suggestions for good self-hosted alternatives to popular online services, how they are better, or how they give back control of your data. Also include hints and tips for less technical readers.

Useful Lists

founded 1 year ago
MODERATORS
 

I feel that I’ve done everything right. I’ve created a section in the port forwarding section that forwards all incoming port 22-29 connections to port 22 and my servers ip. When I try to connect from an outside network as USERNAME@MY PUBLIC IP it just times out.

top 7 comments
sorted by: hot top controversial new old
[–] poeticmichael@alien.top 1 points 1 year ago (1 children)

Install Tailscale on the target PC or server, then enable ssh on your account at Tailscale website. Install Tailscale on the device you intend to use for accessing other devices. That’s it. You can now login to the device(s) via ssh.

[–] Waeningrobert@alien.top 1 points 1 year ago

Doesn’t work in Russia :(

https://reddit.com/r/Tailscale/s/wI71iSDDwS

Any other ideas?

[–] elmicha@feddit.de 1 points 1 year ago

Check if your Provider uses CGNAT. And I don't understand why you opened port 22-29 instead of just one port.

[–] phein4242@alien.top 1 points 1 year ago (1 children)

If you want to forward an ssh connection over an existing ssh connection, ProxyJump is the way to go.

[–] zoredache@alien.top 1 points 1 year ago (1 children)

I think they are asking how to configure Port forwarding on their border router/firewall for incoming SSH connections from elsewhere on the Internet.

Not how to transport other protocols over a working SSH connection.

[–] phein4242@alien.top 1 points 1 year ago

Hard to say without proper info

[–] Over-Advice6046@alien.top 1 points 1 year ago

Before you porr forward your ssh, you need to secure it first, example:

  1. Changing your ssh port to unusal port (something above 20000 or 30000 would be good)

  2. Setup your ssh to not use password auth and use only pubkey

After you set that, port forward the port that you choose and run the command in your terminal or powershell:

ssh -v 'pubkeynameyouchoose.pub' -p 'portyouchoose' username@ipaddress