Skip to content
View in the app

A better way to browse. Learn more.

Armbian Community Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

SSH permission denied

Featured Replies

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...

  • Author

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.

Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.