How to establish a simple ssh connection with c++

后端 未结 2 1439
粉色の甜心
粉色の甜心 2021-02-08 22:01

I am trying to make a c++ program which will connect to an ssh server (my laptop). The server is ok because I can get connected via putty. Although the program I wrote so far ca

2条回答
  •  攒了一身酷
    2021-02-08 22:13

    Finally got it! I removed the line

    ssh_options_set(my_ssh_session, SSH_OPTIONS_CIPHERS_C_S,"aes128-ctr");
    

    Then I used the ssh.dll from libssh v0-7.2 instead of the ssh.dll of v0-7.1 I used before. The ssh.dll is located in libssh-0.7.2\bin. If you take an error like the msvcr120d.dll is missing try to change from debug to release in visual studio.

提交回复
热议问题