diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/x2go-auth-check.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/x2go-auth-check.c b/src/x2go-auth-check.c index ac4ef2e..936bea9 100644 --- a/src/x2go-auth-check.c +++ b/src/x2go-auth-check.c @@ -26,6 +26,8 @@ int main (int argc, char * argv[]) { + int verbosity = SSH_LOG_PROTOCOL; + char password[512]; if (argc != 4) { printf("Not enough params"); @@ -48,6 +50,7 @@ main (int argc, char * argv[]) ssh_session auth_check_ssh_session = ssh_new(); + ssh_options_set ( auth_check_ssh_session, SSH_OPTIONS_LOG_VERBOSITY, &verbosity ); ssh_options_set ( auth_check_ssh_session, SSH_OPTIONS_HOST, &argv[1] ); ssh_options_set ( auth_check_ssh_session, SSH_OPTIONS_USER, &argv[2] ); @@ -69,6 +72,7 @@ main (int argc, char * argv[]) int rc; rc = ssh_connect (auth_check_ssh_session); + printf ("%i\n", rc); if ( rc != SSH_OK ) { ssh_free(auth_check_ssh_session); return -1; |