What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

iTechGuides is reader-supported. When you buy through links on our site, we may earn an affiliate commission. As an Amazon Associate I earn from qualifying purchases. Learn more

If an SSH database tunnel fails, start with the exact error. “channel 0: open failed: administratively prohibited: open failed” (or the similar channel 2 message) means the SSH server rejected the forwarding request under its policy. “connect failed” or “connection refused” means the forwarding channel was accepted, but the SSH server could not connect to the database endpoint.

Those failures require different fixes. For an administrative refusal, inspect AllowTcpForwarding, PermitOpen, DisableForwarding, and any Match rules on the SSH host. For a refused connection, check the database host, listening address, port, and firewalls from the SSH host’s network position.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Identify the SSH tunnel failure before changing settings

Run the tunnel in verbose mode so you can see whether authentication succeeds, whether the forward request is accepted, and which destination was requested:

ssh -vvv -N -L 127.0.0.1:15432:db.internal.example:5432 user@ssh.example.com

The important distinction is the server’s response to the forwarding channel.

#1 Best Overall
Sale
Compressed Air Duster,130000RPM Super Power Cordless Air Duster,Rechargeable Brushless Blower,3 Gear Adjustable Blower with LED Light,Dust Remover for Computer/House/Outdoor/Car
  • Powerful Turbo Fan:CAGIWIRU Electric Air Duster have reached speed up to 130000RPM,Can efficient remove dust and debris.With LED light and Three Adjustable Speed to meet with different cleaning tasks.
  • With Attached USB C Fasting Charging cable.Charing 3 hours,Enjoy up to 240 minutes of use on the lowest setting, For third speed can use for 25mins.with four charging options to meet with your needs.
  • Wide Application:Upgraded attached 5 different nozzles,making it suitable for a variety of scenes, such as car,pet, pc, keyboards, and other electronic devices. It also serves for office and home clean duster.
  • Handy Design & Portable:Cordless air duster electric nozzle is Light weight and small size, design and comfortable to hold and space saving, convenient to carry around. You can put it in your room or inside the car without taking up space.
  • Warranty & Support: Our Electric air duster comes with 5 years warranty and 24/7 customer service. During this period, if you have any questions,pls kindly feel free to contact us.
Message What it means Where to investigate
channel 0: open failed: administratively prohibited: open failed The SSH daemon refused to create the forwarding channel because of policy. Server-side forwarding directives and effective Match rules.
channel 2: open failed: administratively prohibited The channel number differs, but the policy failure is the same. AllowTcpForwarding, PermitOpen, DisableForwarding, and per-user rules.
connect failed The forward was allowed, but the SSH host could not reach the requested database endpoint. Database address, port, route, service listener, and firewall rules.
connection refused through the tunnel The destination actively rejected the connection, usually because no service is listening on that address and port or a firewall is rejecting it. Database listener configuration and network controls as seen from the SSH host.

A successful SSH login does not prove that TCP forwarding is permitted. Authentication and forwarding authorization are separate decisions.

“channel 0: open failed: administratively prohibited: open failed”

This message is normally a server-side policy refusal. The SSH client reached the daemon and requested a local forward, but the daemon would not open the outbound channel. Change the policy on the SSH host, not on the laptop running ssh -L.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Check AllowTcpForwarding

In the SSH daemon configuration, AllowTcpForwarding controls TCP forwarding. The documented values are yes (the default), all, no, local, and remote.

Value Effect relevant to a local -L forward
yes Allows local and remote TCP forwarding.
all Allows both forwarding directions.
local Allows local forwards such as -L while restricting remote forwards.
remote Allows remote forwards such as -R, but blocks a local -L request.
no Blocks TCP forwarding.

For a database tunnel created with -L, the effective value must be yes, all, or local. If it is remote or no, the server can authenticate you while refusing the tunnel.

Do not assume the first occurrence in /etc/ssh/sshd_config is the value used for your session. A later Match block can apply a different value based on user, group, or source address.

Check PermitOpen

PermitOpen limits the destinations that forwarding channels may open. With no restriction, forwarding destinations are permitted. An explicit list allows only the listed host-and-port pairs, written as a hostname and port, an IPv4 address and port, or an IPv6 address in brackets followed by a port.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #2
EVEO® Screen Cleaner Spray Kit (Streak-Free) TV Screen Cleaner for Smart TV, Lcd, LEd, Oled | Computer Screen Cleaner Spray and Wipe Microfiber Cloth - TV, Monitor, Laptop, iPad, Car - 6.7oz 1 Pack
  • Screen Cleaner is Your Screen’s New Bestfriend! - EVEO is proud to present a screen cleaner that’s perfectly suited for your TV. Meet your new screen cleaner, computer screen cleaner, laptop cleaner, iPad cleaner, Macbook,tv cleaner or any other electronic device. Our screen cleaner spray and wipe along with the included plush microfiber cloth, easily removes dust, fingerprints & other smudges on the screen’s surface. Clean effectively for a streak-free screen
  • Gentle on your Screens - Our screen cleaner spray and wipes is compatible to be used even for the most sensitive LCD, LED, CRT, and OLED screens in proper use. Be at ease knowing that this product is compatible with all the major brands: LG, SONY, Samsung, Sharp, iPad, iPhone, Android screens, Kindle, PC monitors - we’ve got you covered! Can be used as LCD screen cleaner, tv cleaner, smart tv screen cleaner, and more
  • Premium Super Soft Plush Microfiber Cloth - Included in this efficient screen cleaning kit. This screen cleaner spray and wipe has our signature plush microfiber cloth specially designed to comply with screens and monitors and leave them streak-free. Has been shown to effectively absorbs stubborn stains, zero streaks, and no fiber shedding. Always use this together with our screen cleaner for the best results
  • Easy-to-Use Screen Cleaner Kit + microfiber cleaning cloth - The EVEO Screen Cleaning Kit will easily be your new favorite tool when it comes to taking care of the things you love most, quick and easy solution for a streak-free screen. Simply screw on the sprayer gun on the screen cleaner bottle. Spray the cleaning liquid onto the microfiber cloth, then wipe the screen until desired cleanliness & shine is achieved.
  • Quality Screen Care Kit Worth Purchasing - Enjoy a convenient Screen Cleaner anytime, anywhere you need it. Your satisfaction is our top priority. We stand behind the quality of our products and that’s why, you shouldn’t be worrying at all. We manufacture the Best Screen Cleaner. and can be used for laptop cleaning kit, laptop screen cleaner, tv screen cleaner for smart tv. MacBook screen cleaner, monitor cleaner or screen cleaner spray for electronic devices with microfiber cleaning cloth
PermitOpen db.internal.example:5432 10.20.0.15:3306 [2001:db8::15]:5432

If your command requests db.internal.example:5432 but the effective list permits only another name, address, or port, the daemon can return an administrative prohibition. The special value any removes destination restrictions, although a narrow list is safer when the account needs access to only one database.

Check DisableForwarding

DisableForwarding is a broad switch. When enabled, it disables X11, agent, TCP, and StreamLocal forwarding and overrides the other forwarding options. Therefore, setting AllowTcpForwarding yes does not restore -L if DisableForwarding yes is effective for the account.

OpenSSH behavior is version-sensitive. In versions before 10.0, DisableForwarding did not completely match its documentation for X11 and agent forwarding; the discrepancy is tracked as CVE-2025-32728. That historical detail does not make it a valid way to permit TCP forwarding: an effective DisableForwarding yes still blocks the TCP forward. Check the manual for the OpenSSH version installed on your server before relying on version-specific defaults.

Evaluate Match blocks, not just global settings

Per-user, per-group, and per-source-address rules can override global forwarding settings. A user connecting from one network may receive a different policy than the same user connecting from another address.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Inspect the effective configuration for the actual session. A useful first check is:

sudo sshd -T | grep -i -e allowtcpforwarding -e permitopen -e disableforwarding

When the configuration contains conditional rules, evaluate it with the connection context supported by your OpenSSH version (for example, the relevant user, source address, and destination). The result you need is the effective value for the account and connection that failed, not merely the global text at the top of the file.

Rank #3
BladeHawks RGB Gaming Mouse Pad Extra Large Extended 31.5x12 Inch-Black
  • 【Large size】:Measuring 800 x 300 mm/ 31. 5×12 inches, which is wider and taller than others. Large mouse pad can perfectly fit your keyboard and mouse of any size, and there is also ample space for peripherals such as phones, tablets, etc.
  • 【LED backlight mouse pad】:Blade Hawks RGB mouse pad provides 7 static modes and 7 dynamic modes will give you the options you are looking for. Power-off memory function remembers the last lighting mode you selected. The super glow fiber Chroma will give you a colorful gaming setup that you want.
  • 【Anti-slip rubber base】:Made from Natural rubber, this gaming mousepad will firmly grip your desktop, allowing you to enjoy the ultimate precision in the games you are most passionate about. It also comes with a texture that enhances this ability even further.
  • 【Smooth and waterproof surface】: Micro-textured cloth surface, for extremely precise mouse control and a smooth movement. When liquid splashes on the gaming mouse pad, it forms water droplets and slides down. Will not delay your work or gameplay.
  • 【Plug and play】: This mouse and keyboard pad is powered by USB, plug and play, no driver required. One button control light modes. Press one time to change the lighting mode, press twice to change the brightness, press and hold about 3 seconds turn ON/OFF.

Validate and reload safely

  1. Edit the SSH daemon configuration on the SSH host, correcting the applicable forwarding directives.
  2. Check syntax before reloading:
sudo sshd -t
  1. If the test reports no errors, reload the daemon using the service manager on that host, for example:
sudo systemctl reload sshd

Some systems use a different service name or init system; use the reload operation appropriate to that installation. Keep an existing administrative session open while testing a change so a configuration mistake does not leave you without access.

  1. Confirm the effective values with sshd -T, then retry the tunnel with ssh -vvv.

“channel 2: open failed: administratively prohibited”

The channel number is not the diagnosis. SSH numbers channels internally, so channel 0, channel 2, or another number can report the same administrative refusal. Apply the same sequence: determine the effective AllowTcpForwarding, check whether PermitOpen includes the requested destination, and make sure DisableForwarding is not active.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

If the global configuration already appears correct, inspect every applicable Match block and any policy applied by an account-management or hosting layer. A historical report from 2009 describes this error persisting after AllowTcpForwarding yes was added; other syntax and policy conditions in the connection path were responsible. The practical lesson is to verify the effective configuration and the exact requested destination rather than stopping after one global setting.

“AllowTcpForwarding not working”: a reliable server-side checklist

  • Confirm you edited the SSH daemon on the host that accepts the client connection, not the database server or your local computer.
  • Run sudo sshd -t to catch syntax errors before a reload.
  • Use sudo sshd -T to inspect effective values.
  • Check AllowTcpForwarding for yes, all, or local.
  • Check PermitOpen for the exact destination host spelling and port used by the command.
  • Check that DisableForwarding is not enabled by a global or conditional rule.
  • Review Match User, Match Group, and source-address conditions that may change the result.
  • Reload the daemon after a successful syntax test and establish a new SSH session.
  • Run the client with -vvv and confirm that the request reaches the intended bastion or jump host.

What does not fix a local -L failure

GatewayPorts

GatewayPorts governs remote forwards created with -R, including whether a remote forward can bind beyond loopback. It does not decide whether a local -L request is allowed. Changing it will not clear an “administratively prohibited” error for a local database tunnel.

PermitTunnel

PermitTunnel controls tun(4) device forwarding for VPN-style layer 2 or layer 3 tunnels. Its default is no, but it is not the TCP forwarding control for -L. Enabling it is not the documented fix for a TCP local-forward refusal. An anecdotal Docker/OpenSSH report also found that changing AllowTcpForwarding, rather than PermitTunnel, resolved a ProxyJump-related problem. Treat that report as a troubleshooting clue, not a universal rule.

How to create and verify the local database tunnel

Use the correct ssh -L form

The general syntax is:

ssh -N -L [local_bind:]local_port:db_host:db_port user@ssh_host

For example, this maps local port 15432 to PostgreSQL port 5432 on a host reachable from the SSH server:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #4
Sale
Vaydeer Wrist Rest for Keyboard and Mouse, Computer Ergonomic Wrist Support Pad, Soft Memory Foam Arm Cushion for Desk, Palm Hand Office Laptop Typing
  • 【Softer and More Comfortable】Vaydeer wrist rest has unique diamond pattern, which is the combination of softness and aesthetics. The materials of wrist rest are improved into higher quality memory foam and covered with silky smooth lycra. The computer wrist rest makes you as comfortable and cushiony as like rest your wrists on clouds.
  • 【Ergonomic Wrist Saver】The wrist rests for keyboard and mouse comes with a 17.32×3.15×0.83 inch keyboard wrist pad and a 5.94×3.15×0.83 inch mouse wrist support. Based on ergonomic design, the unique concave shape is the perfect fit for your wrist joints. The wrist rest pad fits most computer keyboards and laptops, improve hand and wrist posture, release your wrist and arm stress.
  • 【Non-Slip Rubber Bottom】Featuring an anti-skid silicone base on the bottom, this wrist keyboard support stays firmly in place on your desk, preventing the padding from sliding around, ensuring stable and consistent wrist support during extended computer sessions.
  • 【Better Experience & Pain Relief】Our keyboard arm rest is beneficial to alleviate the soreness caused by direct contact and friction between your arm and a hard desk surface, reducing the risk of wrist fatigue or carpal tunnel. The soft texture of memory foam can evenly distribute the pressure around your wrists and provide good support with just enough give.
  • 【Helpful in Multiple Scenarios】Whether you're working, studying, writing, typing, gaming, this keyboard and mouse rest combo is an essential accessory to add comfort and support to your hands and wrists. It’s also a great gift for men, women, family, friend, coworker, gamer, teacher, etc.
ssh -N -L 127.0.0.1:15432:db.internal.example:5432 analyst@bastion.example.com
  • -N requests no remote shell; the session exists for forwarding.
  • 127.0.0.1:15432 is the listening address and port on your laptop.
  • db.internal.example:5432 is the destination as seen from the SSH host.
  • analyst@bastion.example.com identifies the SSH account and forwarding host.

Connect your database client to 127.0.0.1 and port 15432, not directly to the private database address.

Remember whose “localhost” it is

The db_host portion is resolved and reached from the SSH server’s point of view. In:

ssh -N -L 15432:localhost:5432 user@bastion.example.com

localhost means the bastion itself. It does not mean the laptop running the command. Use the database’s address as reachable from the bastion. If a hostname resolves unexpectedly, test the intended address explicitly; replacing a hostname with an IP address has solved similar cases, but that is an anecdotal workaround and should be validated against the server’s routing and name-resolution setup.

Account for jump hosts and bastions

With a jump host, identify which SSH daemon receives the forwarding request and which machine must reach the database. Use verbose output to confirm the chain. A successful connection to an outer gateway does not establish that the inner host can resolve or route to the database.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

“ssh -L connect failed” and “connection refused” through an SSH tunnel

These messages indicate a different stage of failure: the SSH server accepted the forwarding channel but could not establish the second TCP connection to the database. Do not keep changing forwarding policy when the channel is already being opened.

Check the destination host and port

Verify the exact db_host and db_port in the command. Confirm that the database really uses that port on the interface reachable from the SSH host. A database may listen on a private address, a Unix socket, or a different port than the one exposed to clients.

Best Value
Sale
Under Desk Cable Management Tray No Drill, Metal Mesh Cable Management Under Desk with Clamp Mount, 2 Hole Cable Tray with Wire Management and Cord Organizer for Home Office Standing Desk
  • 【No Drill Mounted】Cable management tray can be assembled in as little as 3 minutes or less-simply. Side clips easily clampe the edge of desk, pass through the holes on the sides, and secure excess cables with baskets. Desk cable management supports inward or outward installation to meet your needs in different scenarios, and provides you with great convenience when collecting and organizing wires.
  • 【Rubber Pad Protects Desk】Wire organizer under desk built-in soft rubber pads on the clamp protect your desk from scratches, so you will not damage your furniture or office.
  • 【Sturdy and Beautiful】Cord management under desk is made of high-quality carbon steel and holds about 15 lbs. The wire basket has 2 holes on each side of the tray to enable your cables to pass freely. Cable baskets are suitable for desk thickness use from 0.4" to 2.4".
  • 【Space Saving & Keep Organized】Desk cable management tray holds all your power cords, outlet strips, USB hubs and computer transformers hidden from your feet, and the data cables will not enter the vacuum cleaner to keep your desk clean and tidy. Desk wire organizer is also suitable for use in the kitchen and outdoors.
  • 【Reduce Safety Risks】Cable tray under desk keeps all plugs away from your kids, no more worry about tripping. Using 2 holes wire tray saves extra space, helps you easily cabling and wire protection. The mesh design is not easy to accumulate dust, but avoids safety accidents caused by messy wires.

Check the database listener from the SSH host

Run network tests from the SSH server, not only from your laptop. For a listening socket, an administrator can inspect the server with a platform-appropriate command such as:

ss -lntp

Then test the destination address and port from the SSH host with an approved TCP utility available on that system. If the test fails there, the SSH tunnel cannot succeed until the database service, route, or firewall is corrected.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Check firewalls and network policy

Firewall rules must allow the SSH host’s source address to reach the database port. Cloud security groups, host firewalls, network ACLs, container networks, and database access controls can each block the second connection. A local database client’s ability to reach the bastion says nothing about the bastion’s ability to reach the database.

Interpret the common outcomes

  • Immediate connection refused: the destination address was reachable, but no permitted service accepted the port, or an active rule rejected it.
  • Timeout: routing or filtering is more likely; inspect firewalls, ACLs, and network paths.
  • Name-resolution failure: the SSH host cannot resolve db_host; use the correct internal DNS context or a validated address.
  • Forward opens but the database client fails authentication: the SSH tunnel is working; troubleshoot database credentials, TLS settings, or database authorization separately.

A complete troubleshooting workflow

  1. Copy the exact client error and run the command with -vvv.
  2. If the message says “administratively prohibited,” inspect the SSH daemon’s effective AllowTcpForwarding, PermitOpen, and DisableForwarding values.
  3. Evaluate conditional Match rules for the actual user and source address.
  4. Run sudo sshd -t, reload only after a clean result, and verify with sshd -T.
  5. If the channel is accepted but reports “connect failed” or “connection refused,” stop changing forwarding directives.
  6. From the SSH host, verify DNS resolution, route, database listener address, port, and firewall access.
  7. Confirm that the local client uses the local bind address and port chosen in the -L command.
  8. Retest with a new SSH session and keep the verbose log if escalation to the server or database administrator is required.

Security and least-privilege considerations

Allowing local forwarding gives an SSH account a way to reach services that the account’s network position can access. If only one database is needed, use a narrowly scoped PermitOpen entry instead of allowing every destination. Permit forwarding only for the users, groups, and source addresses that require it, and document the exception so a later hardening change does not silently break a required tunnel.

Do not enable GatewayPorts to solve a local forward, and do not enable PermitTunnel as a substitute for TCP-forwarding policy. Those directives control different features and can broaden access without addressing the actual error.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.