Check SSH
Make sure that your ssh
server is running properly.
- Connect to your Pi with a keyboard, mouse and monitor (or other)
- Check your Pi's
ip address
ip a
- Check that
ssh
is running
sudo systemctl status sshd.service
or
sudo /etc/init.d/ssh status
- Check that
iptables
is not blocking ssh
traffic
iptables-save
(no output is a good sign).
Undo The Changes
Make sure you undid all of the changes.
Uninstall the packages that were installed:
(If they weren't installed already, of course).
sudo apt-get remove dnsmasq openvpn iptables-persistent
Undo the changes to the config files:
(This step is easy if you backed up your config files before changing them).
/etc/dnsmasq.conf
/etc/openvpn/auth.txt
/etc/openvpn/server.conf
/etc/logrotate.conf
/etc/sysctl.conf
Undo the changes the vpn_client_gw_script.fw
script made.
(Running scripts that alter your system always carries risks).
Nuke And Pave
If that doesn't work, reinstalling Raspbian will fix ssh
.
- Back up all of your data
- Copy a fresh image of Raspbian onto your sdcard