libssh 0.4.4
06.01.10 - 10:36am
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.
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.
This will be supported with 0.4.5.
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?
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:
basicaly that’s like a shell script. Do not expect being able to parse the “#” or “$” prompts, it won’t work…
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
Download the source code and compile it yourself. See http://dev.libssh.org/wiki/VisualStudio
Does the libssh support IPV6?
Yes, the client side supports IPv6. The server side will support it with version 0.5.
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?
channel_read()
This is described in The Tutorial
http://api.libssh.org/master/shell.html
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.