Message Boards Message Boards


Why is my SSH not authenticating?

Posted 5 months ago
4 Replies
0 Total Likes

Hi everyone,

I'm writing a bit confused because I've tried everything. I'm hoping for some ideas from people who know what they're doing a little more than me.

I'm trying to SSH into my Cyberpower PDU (device probably not important), which is connected to my computer running Windows 10 via Ethernet cable. I have enabled SSH communication on the device by logging into the IP address that I set it up on.

At first I thought that using RunProcess to connect to the IP address of the device and entering my computer log-in credentials would work, because that's how you usually log into your SSH server. Mathematica kept returning an error that my credentials were wrong, even though they weren't.

So then I tried using a keygen, which should be foolproof. Even when I generate a private key and tell Mathematica to use that file to connect to SSH, it still asks me for my computer log-in credentials, which it shouldn't! Because the SSH key should be enough.

Here's an example of the code I've been trying. (Ignore the fact that my SSH key is stored under a different user's folder - my computer wasn't wiped properly before being administered to me.) I also disguised my IP address below. This should be enough to SSH into the network I set up.

 Authentication -> <|"Username" -> "Darren", 
   "SSHKey" -> File["C:\\Users\\chigozie\\.ssh\\id_rsa"]|>]

What could be wrong that Mathematica simply won't accept my log-in credentials or private key? And where might be a better place for me to post this question? Thank you!

Edit: I'll add that my tried to SSH in from Powershell, and my credentials were not accepted there either. They were, however, accepted when I used PuTTY.

4 Replies
Posted 5 months ago

Are you able to SSH from the shell?

Posted 5 months ago

Actually no. I tried to SSH from Powershell and my credentials weren't accepted there either. They were, however, accepted when I set an SSH network using puTTY.

Posted 5 months ago

Correction: after forcing my system to accept the required cipher types (aes12-cbc, 3des-cbc), I am now able to SSH from the shell. Huzzah. Mathematica still won't accept my private key or credentials however.

Posted 5 months ago

Crossposted here.

Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
or Discard

Group Abstract Group Abstract