sshconfig-lint

Unsafe ControlPath

All checks
warningChecked in the browserUNSAFE_CTRL_PATH

ControlPath does not uniquely identify host, port, and user.

Why it matters

Different SSH connections can collide and reuse the same control socket.

How to fix it

Replace the path with a compact hash such as ~/.ssh/control-%C, or include all three tokens %r@%h:%p. Keep the socket directory private and create it before connecting if you place sockets in a subdirectory.

Before and after

What is wrong
Host *  ControlMaster auto  ControlPath ~/.ssh/control-%h
Corrected configuration
Host *  ControlMaster auto  ControlPath ~/.ssh/control-%C