删除部分本地文件操作的无用代码
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user