Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

修复ssh模板中写死了22端口,这里改成SSH_PORT_DEFAULT这个变量可以通过管理后台,系统配置去修改机器ssh端口 #181

Merged
merged 1 commit into from Apr 3, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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