java用ssh2连接linux机器执行命令时,为什么没有pts

2025-02-25 20:20:14
推荐回答(2个)
回答1:

sockOut.println("hello,I am client");
//使用sockOut发送数据
sockOut.flush();
String s=sockIn.readLine();
System.out.println("Client recived:"+s);
sockOut.close();
sockIn.close();
socket.close();
}catch(Exception e){
System.out.println(e.toString());
System.out.println("client exit");
}

回答2:

检查PATH环境变量 。。。。。。。