Bojescu Mihai Posted November 6, 2017 Posted November 6, 2017 Greetings everyone! I'm having some issues with my Armbian installation. I have an Orange Pi PC 2 (64 bit H5 SoC). I followed the procedure for installing Armbian on my Sd card (reliable one, recently bought as new) using Etcher (so errors won't occur). The SSH daemon works, nmap lists port 22 as open, yet whenever I try to ssh to root ("root@10.42.0.1", where 10.42.0.1 is the IP given by the shared wired network to this connection) even after I wait like 10 minutes or so, it doesn't work (Permission denied). Thing is I don't own a keyboard and a HDMI cable, or UART cable, so I went for this "headless" approach. I know it's possible, but SSH won't let me login. I tried the default "1234" password, yet it always denies the connection. Here is what I tried so far: Creating an user "orange", adding a password to the user, creating a home directory for it using rc.local file, and adding the new user to sudoers. Spoiler useradd -m orange echo "orange:orangePi" | chpasswd Sadly, ssh-ing to orange didn't work. I made a key using ssh-keygen and appended it to /root/.ssh/authorized_keys and to /home/orange/.ssh/authorized_keys and tried to login to both of the users. It didn't work. I edited the sshd configuration setting AuthorizedKeysFile to %h/.ssh/authorized_keys, PermitEmptyPasswords to yes, PasswordAuthentication to yes then to no then disabling it (default) and trying to ssh to both users. It didn't work. Purging openssh-server and reinstalling it using rc.local, ssh-ing to both users, didn't work. Copying the config file from my distribution to the Sd card. No dice, ssh still didn't work. Am I doing something wrong? This happens on both Armbian distributions (desktop and server editions, both using mainline kernel). Hopefully it can be fixed...
Bojescu Mihai Posted November 9, 2017 Author Posted November 9, 2017 Update: I got it fixed. The issue was the IP address I was SSH-ing to. I used nmap to list the hosts that were up and found out that the Pi address was not 10.42.0.1. Everything is working fine now.
Recommended Posts