[JSch-users] Getting information on local port forwarding progress
Status: Alpha
Brought to you by:
ymnk
|
From: Peter H. <pet...@gm...> - 2016-01-18 17:17:08
|
At the moment it seems JSch isn't very verbose as to what happens AFTER the ssh connection is established. You can configure a logger but it will only give you information on the phase up until the SSH connection is established. Nothing more. Consider the following local port forwarding scenario: myworkstation --> jumphost --> desthost I would like to see the following logged: 1. When myworkstation receives a tcp connection it should log that this is happening, i.e in the Socket.accept(). Something like: "Received connection on myworkstation:lport from 10.1.2.3" 2. Following the above JSch should log what it is now attempting to do. Something like: "Instructing SSH server at jumphost to establish connection to desthost:rport" 3. The result of the previous can be either success or failure. In case of success, JSch should log something like: "Connection successfully established from jumphost to desthost:rport. Local port forwarding is now active" In case of failure something like: "jumphost cannot establish connection to desthost:rport" Is this somehow possible or do I need to file a feature request? Peter |