[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
ssh_connect issue "Couldn't apply options"
[Thread Prev] | [Thread Next]
- Subject: ssh_connect issue "Couldn't apply options"
- From: Karlen Abrahamyan <abkarlen@xxxxxxxxx>
- Reply-to: libssh@xxxxxxxxxx
- Date: Mon, 8 Apr 2019 13:31:04 +0000 (UTC)
- To: "libssh@xxxxxxxxxx" <libssh@xxxxxxxxxx>
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
Re: ssh_connect issue "Couldn't apply options" | g4-lisz@xxxxxxxxxxxx |