1

Im working on a program to access files from remote hosts. Basically what i want to do is logging in remote Windows/Linux host with valid credentials, check what files exist in a specific folder, read those files. Is there a library I can use to fulfill the above purpose in Linux?

Thanks.

Additional info: I'm using C. The remote hosts are not expected to have any non-default service (say ftp) running on them. So as long as the protocol can support most default-config-hosts, it should be fine.

Thanks again.

4

3 回答 3

2

看起来你需要一个像libssh这样的 api ...

ssh 库旨在供需要通过库实现工作 SSH 的程序员使用。客户端的完全控制由程序员完成。使用 libssh,您可以远程执行程序、传输文件、为远程程序使用安全透明的隧道。

于 2010-02-24T21:49:26.543 回答
0

要真正简化您的编程任务,请使用 fuse 模块将远程系统映射到本地文件系统,然后使用文件系统语义访问它。;) http://fuse.sourceforge.net/sshfs.html

于 2010-02-26T14:27:41.567 回答
0

gio可以处理任何具有插件的协议,但您需要使用glib才能利用它。

于 2010-02-24T21:54:03.317 回答