I had a working raspberry pi website for a few years. I moved and have to use a different internet provider and have been having some issues. I called them and they gave me this infornmation:
IP - (my public ip)
Subnet - 255.255.255.240
Gateway - 50.221.225.225
DNS1 - 8.8.8.8
DNS2 - 8.8.4.4
I tried to edit the /etc/dhcpcd.conf file via plugging in the microsd card into my computer via a usb adapter to make it connect directly, but then I realized that this was the wrong way to go about it. However in doing so I broke everything! I tried to set it back to its original state and I'm pretty sure I did - however now it looks like everything is not letting me access it. When I put the local ip address for the pi into the url it gives me 403 forbidden and when I try to ssh it gives me kex_exchange_identification: read: Connection reset by peer Connection reset by 192.168.1.2 port 22
I will work with Dish Fiber support to get my website back up but now I am just hoping i have some way to get my rpi back to how it started. Do you know how to fix ssh capabilities? BTW my dhcpcd.conf is now at default settings (all commented out) because that is how it originally was back when my website worked in the first place. Thank you! MW
Edit: I am connected via wifi, not ethernet cable
I know now that changing the dhcpcd.conf won't actually help. That is how I originally had my pi setup back when the site worked, but the technical support at dish fiber said I needed to change the dhcpcd.conf, I think they were just wrong (I'm really not sure why I thought that the help desk for the internet provider would give good advice on editing my Pi). Originally when the website used to work, everything in dhcpcd.conf was just commented out so I reset it to that
When I put the local ip address for the pi into the url it gives me 403 forbidden
what did it used to do when you did that - are you connected via wifi or ethernet cable? – Jaromanda X Jul 21 '23 at 00:16everything in dhcpcd.conf was just commented out so I reset it to that
so, it wasn't in default (installed) state when it worked – Jaromanda X Jul 22 '23 at 17:19dhcpcd.conf
default state? – Mira Welner Jul 22 '23 at 17:33