💻 Software
How to determine the port allocated on the server for a dynamically bound openssh reverse tunnel?
Fresh7 days ago
Mar 15, 20264382 viewsConfidence Score0%
0%
Problem
When creating reverse tunnels on recent versions of OpenSSH, a remote port of 0 can be given to bind any available port: ... If the port argument is `0', the listen port will be dynamically allocated on the server and reported to the client at run time. … Source: OpenSSH client manpage My question …
Error Output
# netstat -ntlp
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: How to determine the port allocated on the server for a dynamically bound openssh reverse tunnel?
Low Risk
If you set the 'LogLevel' in the sshd_config configuration file to DEBUG1 (or any DEBUG level), then sshd will log the port numbers in /var/log/auth.log. Do remember, that using a LogLevel of DEBUG or higher could be a privacy risk, since much is lo…
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix