Hello,
On Fri, 07 Aug 2009, Kenneth Gonsalves wrote:
> I have libssh2 installed, but how do I log in to a remote server using it? I
> tried typing ssh2 on the terminal and it did not recognise the command. It
> sounds silly, but google did not give me an answer.
"libssh2" is a library for using the "Secure Shell Protocol" (version
2). You need to install a program that uses this library for using it
to connect. For example, I think "libcurl3" uses the "libssh2"
library and "curl" uses the "libcurl3" library.
So you can use "curl" to make a secure shell connection using this
library. The following two examples are from the "curl" manual:
Get a file from an SSH server using SFTP:
curl -u username sftp://shell.example.com/etc/issue
Get a file from an SSH server using SCP using a private key to authenticate:
curl -u username: --key ~/.ssh/id_dsa --pubkey ~/.ssh/id_dsa.pub \
scp://shell.example.com/~/personal.txt
To make a secure shell connection in the usual way you need a client
like "openssh-client" or "dropbear".
Regards,
Kapil.
--
_______________________________________________
To unsubscribe, email [email protected] with
"unsubscribe <password> <address>"
in the subject or body of the message.
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc