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.
RemoteConnect[IPAddress["XXX.XXX.XX.XX"],
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.