jsch configured sftp server ssh login-free secret

A free pre-docking secret login through ssh demand, is based on the code to transform the original password sftp server, in fact, very little code changes, to take this opportunity to do some information in its own sort of summary.

1. What is SFTP

SFTP is a secure file transfer protocol that provides a secure encryption for the transmission of files. SFTP SSH is a part, is a secure way to transfer files to the server. SFTP using an encrypted authentication information transmission and transmission of data, so it is very safe to use SFTP. However, since this transmission using the encryption / decryption technology, the transmission efficiency than regular FTP is much lower, if you are higher requirements for network security, you can use SFTP instead of FTP.

2. What is its role and Jsch

Jsch is a pure java implementation of the SSH function with the java library. If you want to know Jsch function must first look at SSH. SSH is a security protocol for secure connections between the different systems, or servers, are encrypted connection and data transfer process. SSH is generally based on a client or a Linux command line, such as through the same window OpenSSH, putty and other client tool, in linux may be connected by ssh username @ host command. But how to achieve if SSH in Java? This is the time to implement this functionality through JSCH.

3. 

Jsch provides four authentication mechanisms:

  • password encryption scheme
  • publickey (DSA, RSA) public and private key way
  • keyboard-interactive
  • gss-api-with-mic

 

 

 

 

 

 ALL

 

 

 

Reference:  https://www.jb51.net/article/172545.htm

 

Guess you like

Origin www.cnblogs.com/zjfjava/p/11735837.html