gravity-sync icon indicating copy to clipboard operation
gravity-sync copied to clipboard

Config Stuck on Registering SSH

Open kewtz opened this issue 2 years ago • 2 comments

Have 2 fresh pi-hole installs via Proxmox containers, service is running on both, gravity-sync installed on both.

» Gravity Sync Remote Host Settings

› Remote Pi-hole host address

? IP: 192.168.0.211

✓ Saving 192.168.0.211 host to gravity-sync.conf

› Remote Pi-hole host username

? User: root

✓ Saving [email protected] to gravity-sync.conf

» Gravity Sync SSH Key Settings

✓ Generating new SSH key

✓ Moving private key to /etc/gravity-sync/gravity-sync.rsa

✓ Moving public key to /etc/gravity-sync/gravity-sync.rsa.pub

✓ Loading gravity-sync.conf

› Registering SSH key to 192.168.0.211

/usr/bin/ssh-copy-id: INFO: Source of key(s) to be installed: "/etc/gravity-sync/gravity-sync.rsa.pub"

[email protected]'s password: 

Permission denied, please try again.

I'm stuck here, I know the root password...but the config seems to be expecting something else? Is it looking for the public key of the other machine?

kewtz avatar Jan 17 '24 18:01 kewtz

Kewtz - Did you check that your second node's (192.168.0.211) /etc/ssh/sshd_config has both of these settings to allow the root user to log in?

PasswordAuthentication yes PermitRootLogin yes

Make sure to enable this setting too PubkeyAuthentication yes

Reminder to restart the ssh daemon. You can remove the PasswordAuthentication afterwards

kevinreck avatar Feb 01 '24 17:02 kevinreck

I did verify this on the .211 node. I also reset the root password on both to ensure that wasn't the problem, I continue to get permission denied.

kewtz avatar Feb 11 '24 18:02 kewtz

Has this been addressed? I've just spin a new install of Pihole on an Orange Pi Zero 2 with Armbian_24.5.3_Orangepizero2_bookworm_current_6.6.31_minimal and gravity-sync on the other Pihole keeps asking me the user password when I try gravyty-sync push

janaxhell avatar Jul 25 '24 15:07 janaxhell

Effective July 26, 2024, this project has been retired. Thank you for your use and enthusiasm for a project that began as a few lines of bash in a Slack channel and envolved into something far more complex, and used by many thousands of Pi-hole enthusiasts over the last four years.

vmstan avatar Jul 26 '24 18:07 vmstan