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.

Orange Pi PC2 image has pre-generated SSH host key

Featured Replies

Recently I borrowed my Orange Pi PC2 to a friend, and he fails to set up SSH connection w/ it.

 

After debugging w/ HDMI monitor, I found ssh_host_ecdsa_key, ssh_host_ed25519_key and ssh_host_rsa_key are preloaded to the Orange Pi PC2 image, which prevented SSH from working.

 

Even if it doesn't prevent working of SSHD, it's also a severe security hole -- that means all Armbian installation with the same image will uses the same host key and they're vulnerable to MITM attack.

 

I think these files should be purged when generating image, and regenerated when first powerup. It's what AOSC OS images do.

1 hour ago, Icenowy said:
 

Recently I borrowed my Orange Pi PC2 to a friend, and he fails to set up SSH connection w/ it.

 

After debugging w/ HDMI monitor, I found ssh_host_ecdsa_key, ssh_host_ed25519_key and ssh_host_rsa_key are preloaded to the Orange Pi PC2 image, which prevented SSH from working.

 

Even if it doesn't prevent working of SSHD, it's also a severe security hole -- that means all Armbian installation with the same image will uses the same host key and they're vulnerable to MITM attack.

 

I think these files should be purged when generating image, and regenerated when first powerup. It's what AOSC OS images do.


But they are (should be) regenerated. https://github.com/armbian/build/blob/master/packages/bsp/common/usr/lib/armbian/armbian-firstrun#L61-L67

I'll check if we made some bug ... Thanks.

 

1 hour ago, Icenowy said:

I think these files should be purged when generating image, and regenerated when first powerup. It's what AOSC OS images do.

 

1 hour ago, Icenowy said:

Even if it doesn't prevent working of SSHD, it's also a severe security hole


Until you don't login to the system, security hole (root/1234) is wide open, but still better than setting fixed password or automated login.

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.