Skip to content

Commit

Permalink
Merge pull request #181 from cj58/cj-3.0
Browse files Browse the repository at this point in the history
修复ssh模板中写死了22端口,这里改成SSH_PORT_DEFAULT这个变量可以通过管理后台,系统配置去修改机器ssh端口
  • Loading branch information
carlosfu committed Apr 3, 2019
2 parents eafcfc4 + 8d0b199 commit 34258b5
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -40,7 +40,7 @@ public class SSHTemplate {
new ThreadFactoryBuilder().setNameFormat("SSH-%d").setDaemon(true).build());

public Result execute(String ip, SSHCallback callback) throws SSHException{
return execute(ip,ConstUtils.DEFAULT_SSH_PORT_DEFAULT, ConstUtils.USERNAME,
return execute(ip,ConstUtils.SSH_PORT_DEFAULT, ConstUtils.USERNAME,
ConstUtils.PASSWORD, callback);
}

Expand Down

0 comments on commit 34258b5

Please sign in to comment.