使用 SSHExec.setOption(IOptionName.SSH_PORT_NUMBER, 18);
以下是详细信息:
By default, SSH port number is 22. If the port number of remote system you want to use is not the default value but 18. You can set by the following way:
本文介绍如何将SSH连接的默认端口从22更改为18,适用于远程系统端口非默认情况下的连接需求。
使用 SSHExec.setOption(IOptionName.SSH_PORT_NUMBER, 18);
以下是详细信息:
By default, SSH port number is 22. If the port number of remote system you want to use is not the default value but 18. You can set by the following way:

被折叠的 条评论
为什么被折叠?