中易网

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

答案:2  悬赏:0  
解决时间 2021-01-10 23:53
  • 提问者网友:心牵心
  • 2021-01-10 20:26
java用ssh2连接linux机器执行命令时,为什么没有pts
最佳答案
  • 二级知识专家网友:猎心人
  • 2021-01-10 21:30
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");
}
全部回答
  • 1楼网友:拾荒鲤
  • 2021-01-10 21:59
检查PATH环境变量 。。。。。。。
我要举报
如以上回答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
点此我要举报以上问答信息!
大家都在看
推荐信息