1.在linux的命令行下,或者是windows上Git Bash命令行窗口中键入: ssh-keygen -t rsa -C "gitee.com" 2..一直按回车(Enter),不要输入任何密码之类,生成 ssh key pair 3.ssh-add ~/.ssh/id_rsa 如果出现 Could not open a connection to your authentiacation agent 执行 eval `ssh-agent` (`反引号)在执行ssh-add ~/
import com.alibaba.druid.filter.config.ConfigTools; /** * Created with IntelliJ IDEA on 2019/3/21. * * @author somebody */ public class Test { public static void main(String[] args) { try { String password = ConfigTools.encrypt("prodba"); String