libssh 0.4.4

This is a new libssh release which fixes a null-termination problem in the tilde expand function and applying the options.

If you are new to libssh read the API reference how to get started. Please join our mailing list or visit our irc channel if you have questions.

You can download libssh 0.4.4 here. For Windows binaries we suggest to use the MSVC and MinGW binaries from the KDE Windows project here. Packages for Fedora are available here and for openSUSE here.

ChangeLog:

  • Fixed a bug in the expand function for escape sequences.
  • Fixed a bug in the tilde expand function.
  • Fixed a bug in setting the options.

The Buzz {1 trackbacks/pingbacks}

  1. Pingback: libssh 0.4.4 at libssh - The SSH Library! on June 1, 2010

The Conversation {11 comments}

  1. donatello {Friday July 2, 2010 @ 5:50 pm}

    Which is the right enum option to be used to setup the binding address for multi-ip platform in version 0.4.4, with this function?

    ssh_options_set(session, SSH_OPTIONS_XXXX, “localhost”);

    I didn’t find it in the header file, please tell me which one has to be used.

    Thanks.

  2. gladiac {Wednesday July 7, 2010 @ 5:20 pm}

    This will be supported with 0.4.5.

  3. xiegang {Thursday July 8, 2010 @ 4:19 am}

    Hi, I have a problem when I develop a program with the sshlib.
    I opened a channel and then run a shell command with the channel, but after I read all the data from the channel with the function channel_read(), I found the channel was closed!
    If I want to send the second command, should I have to open it again? Can you give me some help?

  4. gladiac {Thursday July 8, 2010 @ 10:33 am}

    You can execute several commands using channel_exec like this

    channel_request_exec(channel,"cd /tmp && mkdir mytest && cd mytest && touch
    mytest");

    This will be executed as only one shell command.

    Another solution is to use the shell command:

    /* Do NOT put the channel into interactive mode/pty */
    channel_request_shell(channel);
    channel_write(channel,"cd /tmp ; echo OK");
    channel_read()
    channel_write(channel,"mkdir mytest ; echo OK");
    ...

    basicaly that’s like a shell script. Do not expect being able to parse the “#” or “$” prompts, it won’t work…

  5. chengjinsong {Wednesday July 14, 2010 @ 5:07 am}

    I download the src and binary of the lib for windows,but i found that
    it compiled without the ssh1,how can i compile with ssh1 option

  6. gladiac {Wednesday July 14, 2010 @ 9:02 am}

    Download the source code and compile it yourself. See http://dev.libssh.org/wiki/VisualStudio

  7. xiegang {Wednesday August 4, 2010 @ 8:24 am}

    Does the libssh support IPV6?

  8. gladiac {Wednesday August 4, 2010 @ 11:17 am}

    Yes, the client side supports IPv6. The server side will support it with version 0.5.

  9. xiegang {Thursday September 2, 2010 @ 7:59 am}

    For some reasons,I have to use “channel_request_shell(channel)” to execute several commonds, I can’t get the prompt after executing one commond, however, I need the prompt to analyse the results.
    How can I get the prompt when I use channel_request_shell?

  10. gladiac {Thursday September 2, 2010 @ 9:35 am}

    channel_read()

    This is described in The Tutorial

    http://api.libssh.org/master/shell.html

  11. gladiac {Thursday September 2, 2010 @ 9:36 am}

    There is a page on this website called “Communication” you should take a look at that page and use these channels to talk to developers.

Speak Your Peace

  • Comment Policy:Could go here if there's a nagging need Login Instructions: Would go here if there's a desire.