I want to create a JSP webpage which contains a button on click of which I want to copy a file from remote linux machine to my local directory (in windows) where JSP pages are hosted. I have the UserID and Password of that machine and I can connect to the remote server using SSH command in putty.
I am using Eclipse Indigo and Tomcat Server.
您可以从远程计算机使用FTP吗?
You can use JSch to have a pure Java implementation of the SSH protocol and copy your file. File transfer ( scp
command) with JSch
can be a bit tricky, so you can add securechannelfacade to transfer your file properly
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.