ssh_error(3)

ssh_error3

Error handling

Detailed Description

error handling

Function Documentation

char* ssh_get_error (void * error)

retrieve an error text message

Parameters:

error the ssh session pointer

Returns:

a static string describing the error

int ssh_get_error_code (void * error)

retrieve the error code from the last error

Parameters:

error the ssh session pointer

Returns:

SSH_NO_ERROR no error occured

SSH_REQUEST_DENIED The last request was denied but situation is recoverable

SSH_FATAL A fatal error occured. this could be an unexpected disconnection

Other error codes are internal but can be considered same than SSH_FATAL

From libssh-2-doc 0.2+svn20070321-4 in Debian 5.0 (Lenny). Parsed by carta from the page's man source.