ssh Permission denied (publickey)

doko1975

Member
Aug 27, 2022
10
0
6
Hello,

I am new to Proxmox and have created a Cloud Init image and cloned it into a VM, now I have problems accessing it with my client via SSH, because of the fingerprint, with the message
Code:
“ssh root@192.168.1.150
The authenticity of host '192.168.1.150 (192.168.1.150)' can't be established.
ED45678 key fingerprint is ....
This key is not known by any other names.
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
Warning: Permanently added '192.168.1.150' (ED45678) to the list of known hosts.
root@192.168.1.150: Permission denied (publickey)."
Can anyone help me?

Best regards.
 
@pvps1 is correct, the root login is disabled on all commonly available cloud images.
@doko1975 , unless you created a custom image, or used a custom cloud-init that enables root access, you should use OS specific default username for login. For example, centos/centos, ubuntu/ubuntu, etc.


Blockbridge : Ultra low latency all-NVME shared storage for Proxmox - https://www.blockbridge.com/proxmox
 
I copied the public key of my laptop into the cloud init "SSH public key", when i try to connect via SSH i got the message:
Code:
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!     @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that a host key has just been changed.
The fingerprint for the ED25519 key sent by the remote host is
SHA256:.........
Please contact your system administrator.
Add correct host key in /home/andreas/.ssh/known_hosts to get rid of this message.
Offending ED25519 key in /home/andreas/.ssh/known_hosts:11
  remove with:
  ssh-keygen -f "/home/andreas/.ssh/known_hosts" -R "192.168.1.220"
Host key for 192.168.1.220 has changed and you have requested strict checking.
Host key verification failed.
What i am doing wrong?
 
My guess is - nothing.

You created a VM at time T1, accepted its SSH key and logged in. Then you discarded it and built a new one at T2. The newly generated host SSH key is now, predictably, different. The system is telling you that host SSH key has changed. You are also given the instructions on how to resolve it, as well as the worst case scenario on why it could have happened.
Just do what the message is telling you and enjoy virtualization.

Best


Blockbridge : Ultra low latency all-NVME shared storage for Proxmox - https://www.blockbridge.com/proxmox
 
  • Like
Reactions: IsThisThingOn

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!