Question Locked

SSH permission denied

0 helpful
6 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
About a month ago, I set up Pi hole on a ROC-RK3328-CC (Renegade). Keep in mind during the install, I had to make it's IP static. Randomly Pi hole stopped working but that is not what's bothering me. Now, I can't SSH into it, and it has stayed the same IP address even after turning off static IP. It gives me the same message on the terminal: Port 22: Connection refused. I have no clue why this is happening. Can somebody please give me some knowledge or a solution. Also, it is possible that the port has changed and I did not do the IP thing correctly. If it is found out that the port has changed, can someone tell me how to SSH through the new port. Thanks in advance to anyone that helps.

6 replies

by ali1shaarbaf

@rproffitt I have already tried that before and it hasn't worked. I think my effort to make the IP dynamic was done incorrectly but even if, I wouldn't know. Thanks a lot for trying to help. I really appreciate it!
(I accidentally made a new post lol)

by rproffitt edited

When I messed up my Raspberry Pi I had to hook up a monitor, keyboard and mouse so I could fix it since my network access went down.

I see your board has such connections so you have to do that when it gets that messed up. Or just wipe it out (format) and install the OS and apps again.

by ali1shaarbaf edited

@rproffitt I have already tried that before and it hasn't worked. I think my effort to make the IP dynamic was done incorrectly but even if, I wouldn't know. Thanks a lot for trying to help. I really appreciate it!

by ali1shaarbaf edited

For some reason, no matter how many times I re installed the OS, it still stayed static and port 22 stayed closed. So what I did is I installed Ubuntu and disabled the firewall and renabled it by doing 'sudo ufw disable' and sudo ufw start' and it worked fine after that. I also did a 'sudo service ssh status' to see if it was running or not. It wasn't for me so I did 'sudo apt-get install openssh-server'. It worked after that.

by ali1shaarbaf edited

For some reason, no matter how many times I re installed the OS, it still stayed static and port 22 stayed closed. So what I did is I installed Ubuntu and disabled the firewall and renabled it by doing ‘sudo ufw disable’ and sudo ufw start’ and it worked fine after that. I also did a ‘sudo service ssh status’ to see if it was running or not. It wasn’t for me so I did ‘sudo apt-get install openssh-server’. It worked after that.

This discussion is closed to new replies.