[SOLVED] Replaced .ssh on Proxmox server

tfcbx

New Member
Dec 20, 2022
11
4
3
I blindly (and ignorantly) copied .ssh from a different server. Now when I attempt to use the UI "shell" command I receive "root@192.168.1.68: Permission denied (publickey,password)."

What do I need to do to re-create the appropriate ssh info.

THANKS!
 
This command returns some results...just not sure what to do with them :).

sqlite3 /var/lib/pve-cluster/config.db 'SELECT data FROM tree WHERE name like "authorized_keys";'
 
This was a bit more convoluted. The two systems are part of a cluster. I was using the Proxmox web UI on 192.168.1.67 trying to connect to the shell of 192.168.1.68. That was the "source" of the above error. Here is the solution that worked for me:
While on 192.168.1.67
# ssh-copy-id root@192.168.1.68
 
  • Like
Reactions: leesteken
Here is the solution that worked for me:
While on 192.168.1.67
# ssh-copy-id root@192.168.1.68
Did you create a new RSA ID on the server that you overwrote .ssh (many tutorials on that on the inter)? Otherwise both servers will have the same key. While it might not need to be unique, it's better to not reuse those (otherwise one system could login to both when it knows one of them).
 
Did you create a new RSA ID on the server that you overwrote .ssh (many tutorials on that on the inter)? Otherwise both servers will have the same key. While it might not need to be unique, it's better to not reuse those (otherwise one system could login to both when it knows one of them).
Yes, I did something like ssh-keygen -t rsa -b 4096 -C
 
  • Like
Reactions: leesteken

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!