www.libssh2.org | Daily snapshots | Mailing list archive | Docs | Examples | github

Archive Index This month's Index

Subject: Remote using command line

Remote using command line

From: Dmitry <russiankickingbear_at_gmail.com>
Date: Wed, 11 Apr 2012 13:39:19 +0400


Try to send to remote server command "tar cf test.tar test_file.txt"
As a result of this operation creates archive test.tar in folder
/home/username. But I want to be able to execute commands not only in
/home/username directory, but in any directory. How can I implement this
feature? Before create archive i tried to send command like "cd /
target_directory" But as a result archive anyway created in /home/username


libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2012-04-11

the libssh2 team