Before I begin, I am very aware of this thread. This question is not a duplicate of that one because the troubleshooting from that thread has not fixed my issue.
I have set up an ubuntu 20.04 server on a raspberry pi 4. I have installed openssh-server on that server and enabled it. I have also assigned it a static IP in the netplan
network:
version: 2
ethernets:
eno1:
dhcp4: false
dhcp6: false
addresses:
- 127.0.0.2/24
routes:
- to: default
via: 127.0.0.1
nameservers:
addresses: [127.0.0.1]
This netplan has assigned a static IP address to my ethernet port (eno1) - ip addr
shows
... lo and wlan0 etc
eno1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
link/ether <mac address omitted> brd ff:ff:ff:ff:ff:ff
inet 127.0.0.2/24 brd 127.0.0.255 scope host eno1
valid_lft forever preferred_lft forever
inet6 <ipv6 omitted> scope link
valid_lft forever preferred_lft forever
The output of sudo systemctl status ssh
outputs that ssh server is enabled.
Now for my client machine (what I'm trying to connect to the server with). I am running Ubuntu 22.04 LTS. I have also installed openssh-server and it is running. I have also added the same netplan (apart from changing) the addresses clause to hold [127.0.0.3/24]
- since the host and client cannot have the same IP.
I have also modified the firewall for both machines to enable ssh (open port 22) and tested it with nmap.
I cannot ssh into my server:
ssh ubuntu@127.0.0.2
meropis@OMEN:~$ ssh ubuntu@127.0.0.2
ubuntu@127.0.0.2's password:
Permission denied, please try again.
ubuntu@127.0.0.2's password:
Permission denied, please try again.
ubuntu@127.0.0.2's password:
ubuntu@127.0.0.2: Permission denied (publickey,password).
meropis@OMEN:~$
This connects and does the usual fingerprint not recognized jargon, then asks me to log in to ubuntu@127.0.0.2 - to all the world this looks like its working. Then I enter my password (which I know is completely correct and have reset multiple times) and it says the password is incorrect. Can anyone see anything I'm doing wrong??
It should be mentioned that I do not have any internet access on the ubuntu server. This is a separate issue I am attempting to solve. Please do not include solutions that involve me installing a package as I am unable to do so.