![](https://seccdn.libravatar.org/avatar/b90cf9b86b0da4d4a13a7b2aeac56292.jpg?s=120&d=mm&r=g)
W dniu 30.11.2021 o 11:04, Vojtěch Zeisek pisze:
Hi, I tried SSH tunnelling several times, but never made it to work, so might be time to start from scratch... I have in my office desktop running TW, at home notebook running TW, and in the office also Synology NAS running some (Debian- based?) Linux. The NAS has public as well as internal IP and I have fully admin control over it. I can SSH to the NAS and from it to the desktop. Fine. But I'd prefer direct connection (let's disregard VPN for a moment). I vaguely remember I'd have to open new SSH port on the NAS, but I'm not sure if I need there also extra SSH service...? And how I then tunnel from notebook to the desktop via NAS...? Thanks, V.
You cannot have a "direct" connection (there's always be some kind of tunneling, whether it's ssh or vpn). But you can emulate one by using "ssh -J" or ProxyJump in .ssh/config. In your case it will look like this: ssh -J nas_public_ip desktop_private_ip or in .ssh/config Host desktop HostName desktop_private_ip ProxyJump nas_public_ip