Remote port forwarding problem

Brian Candler b.candler at pobox.com
Sun Apr 12 04:57:39 AEST 2026


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.



More information about the openssh-unix-dev mailing list