can this lib support scp command?
how can i do?
Aug 5, 2011 at 1:55 PM
I already have and issue open to add SCP support but I think I have some other feature that you might find usefull.
Please take a look at SftpFileStream class, unfortunatly I dont have many examples of this feature yet, as it was added recently, but the basic idea behind it is to be able to open, read and write to the file remotly as it
would be local.
And of course if you can read and write it you can implement SCP functionality that you need.
Here is an example of SftpFileStrea:
using (var sftp = new SftpClient(connectionInfo))
var file = sftp.OpenText("test.txt");
var content = file.ReadToEnd();
Hope it helps,