Remote port forwarding problem

Thomas Köller thomas at krokinole.de
Tue Apr 14 19:51:36 AEST 2026


You're right, of course. After thinking it through it almost becomes 
obvious.

On 11.04.26 20:57, Brian Candler wrote:
> On 11/04/2026 15:56, Thomas Köller via openssh-unix-dev wrote:
>> The local system is running Fedora 43 with SELinux enabled. However, 
>> creating a file in /tmp should always work, and in fact ssh does not 
>> report an error accessing that location. So what is wrong here? 
>
> I think that ssh expects the socket to already exist, with something 
> listening on it to accept the connection. It won't create it itself.
>
> Demo:
>
> (in window 1)
>
> % nc -lU /tmp/testing
>
> (in window 2)
>
> % ssh -R 1234:/tmp/testing cloud2
>
> (in window 3)
>
> % telnet cloud2.example.com 1234
> hello
>
> (in window 1) I see "hello" appear.
>
> _______________________________________________
> openssh-unix-dev mailing list
> openssh-unix-dev at mindrot.org
> https://lists.mindrot.org/mailman/listinfo/openssh-unix-dev


More information about the openssh-unix-dev mailing list