1

SSH RemoteForward notify client on failure

view story
linux-howto

http://serverfault.com – I am using SSH to forward a port on a remote machine (Client) to another machine (Server) using (~/.ssh/config) Host Client: Hostname {ip} ... RemoteForward localhost:{port} localhost:{port} The problem is that even when there is not one listening on the Server, the client can connect successfully to localhost:port. The only indication of the failure is a message on the server: connect_to localhost port {port}: failed. Is there a way to forward this error to the client and terminate the connection? (HowTos)