It looks like the new RemoteConnect and RemoteRunProcess functions have the potential to dramatically simplify one of my workflows.

However, I will probably need to SSH to machines that have non-default SSH ports open.

Is there some way to change this, maybe on the SSH side? Nothing obvious jumps out at me from the documentation.

  • 1
    $\begingroup$ This works for mail servers running on non-standard ports MailServerConnect["host.example.com", Authentication -> <|"PortNumber" -> NNN|>]. Try that with RemoteConnect. $\endgroup$ Oct 19, 2018 at 22:17
  • 1
    $\begingroup$ Sadly that does not appear to work. Looking at the def for RemoteConnect (it's not ReadProtected or anything) there really isn't a way to do it. $\endgroup$
    – Pillsy
    Oct 22, 2018 at 16:26
  • $\begingroup$ You may want to do the port tunneling. However, this is not a MA solution. $\endgroup$
    – yarchik
    Dec 22, 2019 at 13:35


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Browse other questions tagged or ask your own question.