SOLVED Network unreachable after "PasswordAuthentication no"
Posted: Mon Aug 06, 2018 2:17 pm
Hello forum,
I m pretty new to raspbian and struggle a bit with SSH configuration.
Raspberry modell is 3b+.
I enabled SSH through raspi-config
and changed eth0 to static adress once this way:
and once this way (DON T DO THIS - Thank you DirkS)
Both ways worked fine so far,
i added "ssh-copy-id" my rsa keys - login worked fine.
However, everytime i do this:
the network (pi) becomes unreachable after reboot,
no matter wich configuration.
Without "PasswordAuthentication no" the pi remains reachable even after reboot.
It s a 2018-06-27-raspbian-stretch-lite fully updated.
Does anyone know how to fix it ?
Thank you in advance.
EDIT:
Turned out the guide i used was missing something like this:
Still curious wich is the correct way to shutdown the pi in cli
and why "sudo poweroff" leaves LED s turned on.
Thank you Everyone !
I m pretty new to raspbian and struggle a bit with SSH configuration.
Raspberry modell is 3b+.
I enabled SSH through raspi-config
and changed eth0 to static adress once this way:
Code: Select all
sudo nano /etc/dhcpcd.conf
interface eth0
static ip_address=192.168.8.25
static routers=192.168.8.254
static domain_name_servers=208.67.222.222 208.67.220.220 # OpenDNS
Code: Select all
sudo nano /etc/network/interfaces
auto eth0
iface eth0 inet static
address 192.168.8.25
netmask 255.255.255.0
gateway 192.168.8.254
i added "ssh-copy-id" my rsa keys - login worked fine.
However, everytime i do this:
Code: Select all
echo "PasswordAuthentication no" | sudo tee -a /etc/ssh/sshd_configno matter wich configuration.
Without "PasswordAuthentication no" the pi remains reachable even after reboot.
It s a 2018-06-27-raspbian-stretch-lite fully updated.
Does anyone know how to fix it ?
Thank you in advance.
EDIT:
Turned out the guide i used was missing something like this:
Code: Select all
$ echo "PubkeyAuthentication yes" | sudo tee -a /etc/ssh/sshd_config
$ echo "RSAAuthentication yes" | sudo tee -a /etc/ssh/sshd_configStill curious wich is the correct way to shutdown the pi in cli
and why "sudo poweroff" leaves LED s turned on.
Thank you Everyone !