connect to SFTP using java

后端 未结 6 1668
野趣味
野趣味 2021-01-07 09:33

I need help with connection to SFTP server? Does anybody have working code?

I found something like this

package test.JSch;

import com.jcraft.jsch.*;         


        
6条回答
  •  走了就别回头了
    2021-01-07 10:15

    JSch API : session.connect(); asking again user name and password to connect to server even though those are passed as parameter.

    how to make the code to avoid asking user name and password again.

提交回复
热议问题