3
$\begingroup$

I'm trying to SSH into my Cyberpower PDU41001, which is connected to my computer via Ethernet cable. My computer runs Windows 10. I have enabled SSH communication on the device by logging into the IP address that I assigned to it and configuring my port 22 for SSH.

At first I thought that simply telling Mathematica to connect to the IP address of my device and entering my computer log-in credentials would work. However, Mathematica kept returning an error that my credentials were wrong, even though they weren't.

I am able to SSH into the device from the shell using my credentials (not even needing a private key). I had to force my system to accept one of their offered cipher types - but after I did that, it worked. My credentials still aren't being accepted in Mathematica however.

Here's my code below. This should be enough to establish the connection. I'm using a private key file, it shouldn't have to ask for a password.

RemoteConnect[
  IPAddress["XXX.XXX.XX.XX"], 
  Authentication -> <|
     "Username" -> "Darren", 
     "SSHKey" -> File["C:\\Users\\darren\\.ssh\\id_rsa"] |>
]

What could be the reasons why Mathematica would reject me from my SSH network even when I'm using a private key and entering my correct credentials?

$\endgroup$
6
  • $\begingroup$ Using remote = RemoteConnect["192.168.1.140", "bashuser"] (+) Works fine for me. (+) community.wolfram.com/groups/-/m/t/1789287 Says with version 12 is broken. (+) I am on version 12.1 (+) Else, I often have to update /etc/hosts to add addresses of "who is connecting." (+) Try working with RSA key setups, then set up the key token, is my recommendation. $\endgroup$ Commented Jun 1, 2020 at 17:51
  • $\begingroup$ Crossposted here. $\endgroup$ Commented Jun 1, 2020 at 18:33
  • $\begingroup$ Thanks @prog9910 I'll go down that route. Not sure what the discussion in your link is saying.. Is it saying that it is now impossible to connect to a specific IP address using Mathematica 12? $\endgroup$ Commented Jun 1, 2020 at 20:46
  • $\begingroup$ Contact Wolfram support, your best bet. Though they'll no doubt claim, your firewall is blocking your port or such. $\endgroup$ Commented Jun 1, 2020 at 20:56
  • $\begingroup$ @prog9910 that is exactly what they have claimed, but they are looking further into it for me now. $\endgroup$ Commented Jun 1, 2020 at 21:37

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.