I'm writing a bit confused because I've tried everything. Let me know if I'm missing any critical information for you to help 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 and configuring my port 22 for SSH. I need to use Mathematica for this project, so that's what I've been using.
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, because that's how you usually SSH into your 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. And then I enter my credentials and it still won't let me in.
I don't expect many Mathematica users here, but here's my code below. This should be enough to establish the connection. (and 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.)
RemoteConnect[IPAddress["XXX.XXX.XX.XX"], Authentication -> <|"Username" -> "Darren", "SSHKey" -> File["C:\\Users\\chigozie\\.ssh\\id_rsa"]|>]
I should add that when I use putty to do the same thing, my credentials work... but when I use powershell, they don't. If that's a clue at all.
Generally speaking what could be the reasons why I get rejected from of my SSH network even when I'm using a private key and entering my correct credentials? What should I do to solve those issues?