我发现可以在eclipse中配置SSH连接..! 他们可以通过Java代码在eclipse中向命令的SSH终端发送命令/文本吗? 我从事自动化工作,以前我们使用putty和AutoIt自动化putty。
请建议如何使用Java代码与eclispe中的终端进行通信。 是否可以使用Java代码将完整的文本从eclipse中的终端返回到字符串?
http://blog.terminal.com/tutorial-using-eclipse-with-terminal/
答案 0 :(得分:0)
不,您不会通过代码获取在远程SSH终端上执行的命令输出。在eclipse bugzilla上看到此评论。另请阅读有关此错误的所有评论。
相反,您可以使用远程shell执行命令并获取其输出。请参阅此帖Opening remote terminal programmatically in eclipse terminals view and execute shell commands programmatically in it或this comment。