FG

Howto disable SSH local port forwarding?

Fresh3 days ago
Mar 15, 202671007 views
Confidence Score0%
0%

Problem

I have a server running Ubuntu and the OpenSSH daemon. Let's call it S1. I use this server from client machines (let's call one of them C1) to do an SSH reverse tunnel by using remote port forwarding, eg : On S1, I use the default sshd_config file. From what I can see, anyone having the right crede…

Error Output

ssh -R 1234:localhost:23 login@S1

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: Howto disable SSH local port forwarding?

Low Risk

Another solution would be to only allow port forwarding to specififc users: From SSH: The definitive guide Port forwarding can be globally enabled or disabled in sshd. This is done with the serverwide configuration keyword AllowTcpForwarding in /etc…

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment