On Sat, 16 Feb 2008 16:51:42 +0100
marco <[EMAIL PROTECTED]> wrote:

> I want to use ssh with the following code:
> buf = ssh_cmd(socket:22, cmd:"cat /etc/samba/smb.conf", timeout:60);

This is incorrect. the first parameter is an open socket, not a port number.
You'll need something like:
  sock = ssh_login_or_reuse_connection();
  buf = ssh_cmd(socket:sock, ...)
_______________________________________________
Nessus mailing list
[email protected]
http://mail.nessus.org/mailman/listinfo/nessus

Reply via email to