Xshell Forum

An error (code = 0) occurred in ssh-agent connection.

Last post: Wednesday, August 17, 2016 7:19 PM by Support, 1 reply

Monday, August 8, 2016 7:17 PM - oleg

An error (code = 0) occurred in ssh-agent connection.

When i connect to server an error occur. XShell not connecting to xagent. Trace log:
Connecting to
Connection established.
To escape to local shell, press 'Ctrl+Alt+]'.
[22:05:48] Version exchange initiated...
[22:05:48] server: SSH-2.0-OpenSSH_5.3
[22:05:48] client: SSH-2.0-nsssh2_5.0.0034 NetSarang Computer, Inc.
[22:05:48] SSH2 is selected.
[22:05:48] Algorithm negotiation initiated... (mode 0)
[22:05:48] key exchange: diffie-hellman-group-exchange-sha256
[22:05:48] host key: ssh-dss
[22:05:48] outgoing encryption: aes128-cbc
[22:05:48] incoming encryption: aes128-cbc
[22:05:48] outgoing mac: hmac-sha1
[22:05:48] incoming mac: hmac-sha1
[22:05:48] outgoing compression: none
[22:05:48] incoming compression: none
[22:05:48] Host authentication initiated...
[22:05:48] Hostkey fingerprint:
[22:05:48] ssh-dsa 1024 aa:ba:f8:d1:ca:e0:47:a3:f6:a0:03:f8:a5:f2:12:8f
[22:05:48] Accepted. Verifying host key...
[22:05:48] Verified.
[22:05:48] User authentication initiated...
[22:05:48] Sent user name 'admin'.
[22:05:48] Server support public key authentication method.
[22:05:48] Trying to find ssh-agent...
[22:05:48] Xagent is running. Connecting to ssh-agent...
[22:05:48] An error (code = 0) occurred in ssh-agent connection.
[22:05:48] Fall back to normal authentication steps.
[22:06:02] Canceled.

xagent is running and keys loaded. In log message about error, but code=0

Program Ver. : Xshell 5
Wednesday, August 17, 2016 7:19 PM - Support

Re: An error (code = 0) occurred in ssh-agent connection.

This problem usually occurs if Xshell was not able to communicate with Xagent. The reason they could not communicate could be an antivirus program that controls network applications or it could be because Xagent is an older version than that of Xshell.

Please check the policies of your antivirus program or do a full uninstallation and reinstallation of Xshell.

Technical Support

Like us on Facebook
Follow us on Twitter
Visit our blog Blog