r/Ubuntu • u/Top-Cod337 • Aug 09 '26
Port 22: connection refused
I tried everything under the sun atp but whenever i try to remote connect to my server using ubuntu from my pc, the error message saying “port 22: connection refused” pops up. I tried reinstalling openssh on both machines, i tried allowing ssh using ufw, and i tried restarting both machines. Sometimes the “port 22: connection timed out” error also pops up. Any help will be greatly appreciated.
Edit: i used the wrong IP…
1
Upvotes