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