I am using SSH to access my Pi 3 which is connected to my home router via Ethernet. It gets an IP address via DHCP from the router and I connect to it using my laptop installed with Ubuntu without any issues.
I followed the instructions here to give my Pi a static IP and it worked fine. The Pi can be pinged with its new IP now, but I cant access the Pi via SSH on my Ubuntu laptop anymore.
I removed the SSH key from Ubuntu using
rm ~/.ssh but that did not help.
When I take out the SD card and change the
/etc/dhcpcd.conf to its previous DHCP setting the SSH connection works fine again.
z@vaio:~$ ssh firstname.lastname@example.org The authenticity of host '192.168.2.10 (192.168.2.10)' can't be established. ECDSA key fingerprint is SHA256:2uehpaRWZyOrjJpJbQR1bcj9RWBaeQA6DSijkicYago. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added '192.168.2.10' (ECDSA) to the list of known hosts. email@example.com's password: Permission denied, please try again. firstname.lastname@example.org's password: