Hi folks,
I would like to know if there is a way to get time taken for each step in debug mode to be displayed to find out which step is taking the longer time.
Net::SSH::Perl Version 1.35, protocol version 2.0, running in debug mode
I have the following timeout issue at times and would like to get UNIX time displayed besides the sourceserver like following for each debug line.
Thanks.
sourceserver unixtime: Reading configuration data /usr/local/apps/.ssh
+/config
sourceserver unixtime: Reading configuration data /etc/ssh_config
sourceserver unixtime: Connecting to targetserver, port 22.
sourceserver etc: Remote protocol version 2.0, remote software version
+ OpenSSH_4.3
sourceserver: Net::SSH::Perl Version 1.35, protocol version 2.0.
sourceserver: No compat match: OpenSSH_4.3.
sourceserver: Connection established.
sourceserver: Sent key-exchange init (KEXINIT), wait response.
sourceserver: Algorithms, c->s: 3des-cbc hmac-sha1 none
sourceserver: Algorithms, s->c: 3des-cbc hmac-sha1 none
sourceserver: Entering Diffie-Hellman Group 1 key exchange.
sourceserver: Sent DH public key, waiting for reply.
sourceserver: Received host key, type 'ssh-dss'.
sourceserver: Host 'targetserver' is known and matches the host key.
sourceserver: Computing shared secret key.
sourceserver: Verifying server signature.
sourceserver: Waiting for NEWKEYS message.
sourceserver: Send NEWKEYS.
sourceserver: Enabling encryption/MAC/compression.
sourceserver: Sending request for user-authentication service.
sourceserver: Service accepted: ssh-userauth.
sourceserver: Trying empty user-authentication request.
sourceserver: Authentication methods that can continue: publickey,gssa
+pi-w
ith-mic,password,keyboard-interactive.
sourceserver: Next method to try is publickey.
sourceserver: Next method to try is password.
sourceserver: Trying password authentication.
Taking too long to complete. Timed out after 60 seconds.
|