I wrote a sample program, which demonstrates filetransfer from local to
remote in scp style. It seems scp command from OpenSSH just uses
remote exec and filexfer protocol is not used.
It is available at
For example, you can do as follows,
java ScpTo ScpTo.class localhost:.
Please refer it if you are interested in.
PS. At last weekend, I hacked the user authentication by publickey and
I succeed to implement it by DSA at last.
It was difficult for me to do because I did not have any knowledge
about PCKS and I could not find formal definitions about ~/.ssh/id_dsa.
However, the source code of OpenSSL taught me 'what are included in it'.
Anyway, I will release next version with this functionality in a few