SSH to other devices not working Topic is solved

Have some feedback, questions, suggestions, or just fancy a chat? Pop it in here.
Post Reply
Fireman1224
Posts: 7
Joined: Fri Aug 27, 2021 9:49 pm

SSH to other devices not working

Post by Fireman1224 »

Hello,

I'm trying to set up Network UPS Tools on my Pi3 to shut down other devices on my network (another Pi and an EdgeRouter Pro) via SSH, but I can't seem to get the SSH up and running. I first tried to configure on my other Pi, but get the following:

Code: Select all

Permission denied (publickey,password).
I can't seem to get around this and am unsure how to proceed. Thanks in advance for any assistance!!

Thanks,
User avatar
MichaIng
Site Admin
Posts: 3372
Joined: Sat Nov 18, 2017 6:21 pm

Re: SSH to other devices not working

Post by MichaIng »

So to assure I understand right: You're trying to connect from the DietPi system to another SSH server on the nerwork, right? Which SSH client did you try and with which command exactly? Dropbear is preinstalled btw, so sonething like this should work:

Code: Select all

dbclient 192.168.1.123
Fireman1224
Posts: 7
Joined: Fri Aug 27, 2021 9:49 pm

Re: SSH to other devices not working

Post by Fireman1224 »

@MichaIng
I am trying to detect UPS status on the DietPi and then SSH to the other devices to gracefully shut them down.

I ended up figuring it out as I had generated too many different keys and nothing was working. I cleared the keys, generated new ones on the DietPi, then copied the Public and Private keys to the respective devices and it seemed to work. Now I just have to come up with a script to shut down the devices in order so nothing gets corrupted.

Thanks!!
Post Reply