<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[SSH.Command with different port]]></title><description><![CDATA[<p dir="auto">I've seen that that the SSH.Command uses fixed port 22.<br />
It would be useful to have the possibility to specify different port. Can I add the fifth optional parameter port with default value 22 to the SSH.Command? Would you add it this change to your sources?</p>
]]></description><link>https://forum.netxms.org/topic/6836/ssh.command-with-different-port</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 09:19:35 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/6836.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 29 Dec 2020 13:13:54 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to SSH.Command with different port on Tue, 29 Dec 2020 18:32:08 GMT]]></title><description><![CDATA[<p dir="auto">Thank you.<br />
I know this workaround.</p>
]]></description><link>https://forum.netxms.org/post/29156</link><guid isPermaLink="true">https://forum.netxms.org/post/29156</guid><dc:creator><![CDATA[pvo]]></dc:creator><pubDate>Tue, 29 Dec 2020 18:32:08 GMT</pubDate></item><item><title><![CDATA[Reply to SSH.Command with different port on Tue, 29 Dec 2020 18:26:02 GMT]]></title><description><![CDATA[<p dir="auto">Yes, that's actually a problem - executeSSHCommand uses SSH settings from node it is called on, and it is actually not possible to set SSH port for node.<br />
In NXSL workaround is to use agentReadList - all that executeSSHCommand does is reading agent list with necessary arguments (properly escaped). But it has to be fixed anyway - SSH port for node definitely should be configurable, and maybe optional port number, login, and password arguments can be added to executeSSHCommand.</p>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/29155</link><guid isPermaLink="true">https://forum.netxms.org/post/29155</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Tue, 29 Dec 2020 18:26:02 GMT</pubDate></item><item><title><![CDATA[Reply to SSH.Command with different port on Tue, 29 Dec 2020 18:10:58 GMT]]></title><description><![CDATA[<p dir="auto">Hi Victor,</p>
<p dir="auto">thank you for your answer. It was good idea first ask before I started  to modify the sources  ;).</p>
<p dir="auto">If I understand this right, there is no such posibility for the NXSL function executeSSHCommand. Is it so?</p>
]]></description><link>https://forum.netxms.org/post/29154</link><guid isPermaLink="true">https://forum.netxms.org/post/29154</guid><dc:creator><![CDATA[pvo]]></dc:creator><pubDate>Tue, 29 Dec 2020 18:10:58 GMT</pubDate></item><item><title><![CDATA[Reply to SSH.Command with different port on Tue, 29 Dec 2020 18:01:43 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">port can be specified as part of host name after : character. This is relevant piece of code from SSH subagent: <a href="https://github.com/netxms/netxms/blob/819a9418773ce2fe4b5589397a70716d736c652e/src/agent/subagents/ssh/handlers.cpp#L39" rel="nofollow ugc">https://github.com/netxms/netxms/blob/819a9418773ce2fe4b5589397a70716d736c652e/src/agent/subagents/ssh/handlers.cpp#L39</a></p>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/29153</link><guid isPermaLink="true">https://forum.netxms.org/post/29153</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Tue, 29 Dec 2020 18:01:43 GMT</pubDate></item></channel></rss>