It is relatively hard to find code examples in Internet regarding SFTP and SSH in java. Here I have written an example to demonstrate its usage. Key points I make use of J2SSH v0.2.2 The demonstration program is capable of acting as a ssh mini shell run a batch of simple sftp commands stored in a specified file run a batch of simple ssh command stored in a specified file (not yet finished) Remark: Please note that the crew who made J2SSH has already totally rewritten all of its functions and make it available at commercial market Please do test the speed of the prototype before you decide on whether to use this package. We have tested that it is generally at least 10% slower than sftp version in Unix. Usage Application :Sftp/SSH client Author :Edmund Ng last update :2009-11-05 versi...
Articles, JAVA /.NET programme sources, components sharing