删除部分本地文件操作的无用代码

This commit is contained in:
2018-05-10 22:03:22 +08:00
parent edcff8ef21
commit d9c030de69
8 changed files with 13 additions and 18 deletions

View File

@@ -20,11 +20,13 @@ public class RemoteExecuteCommandUtil {
private String ip;
private String userName;
private String userPwd;
private int port;
public RemoteExecuteCommandUtil(String ip, String userName, String userPwd) {
public RemoteExecuteCommandUtil(String ip, String userName, String userPwd,int port) {
this.ip = ip;
this.userName = userName;
this.userPwd = userPwd;
this.port = port;
}
@@ -42,7 +44,7 @@ public class RemoteExecuteCommandUtil {
public Boolean login(){
boolean flg=false;
try {
conn = new Connection(ip);
conn = new Connection(ip,port);
conn.connect();//连接
flg=conn.authenticateWithPassword(userName, userPwd);//认证
} catch (IOException e) {