[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

ssh_connect issue "Couldn't apply options"


Hi. I have previously used libssh version 0.7.2 on Windows and it worked just fine, wanted to switch to new version 0.8.7 but I keep getting "Couldn't apply options" error message on ssh_connect func call and cant find any help in other threads.
Here is my code
 sshSession = ssh_new(); if (sshSession == NULL) exit(-1);
        int port = 22;
        ssh_options_set(sshSession, SSH_OPTIONS_HOST, "192.168.0.109");
 ssh_options_set(sshSession, SSH_OPTIONS_PORT, &port);
 int rc = ssh_connect(sshSession); if (rc != SSH_OK)
 {                // here I keep getting the error I mentioned above
 ssh_free(sshSession);
 }

This exact code worked in 0.7.2 version on Windows. Any help would be much appreciated. Thank you in advance.
Regards, Karlen Abrahamyan

Follow-Ups:
Re: ssh_connect issue "Couldn't apply options"g4-lisz@xxxxxxxxxxxx
Archive administrator: postmaster@lists.cynapses.org