FG
💻 Software

ssh ForceCommand vs. ProxyCommand

Fresh5 days ago
Mar 15, 20268174 views
Confidence Score0%
0%

Problem

I need to have a group of users hop through a server ('bastion') into another machine ('dest') via ssh to commit code. Seems like my options are: tell users to use in their .ssh/config file, something like: use in the sshd config file, like use the option in the users' file, like The first solution…

Error Output

debug1: Authentications that can continue: publickey,password
debug1: Next authentication method: publickey
debug1: Offering public key: .ssh/XXXXXX
…

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: ssh ForceCommand vs. ProxyCommand

Low Risk

The solution turned out to be: On the client side, in : On the server side, in : The users' on the server does not need any . Now if a user tries to do anything else (e.g. launches ssh without the ProxyCommand) all they get is netcat's output Thanks…

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment