You are here

Managing the remote KVM host without entering a password, disable password entry for ssh


Hello. When using virt-manager to manage a remote KVM host, every time you open it, you need to enter the SSH connection password, which personally annoys me.

To permanently disable a password, if you open it, if remote hosts are connected to it, you need to add the ssh key to the host, which by the way will also allow you to not enter the password for SSH connection each time.

1) Make sure that the terminal is launched from the same user from which virt-manager is launched. You also need to make sure that the user who connects to the host enters the libvirtd group on the host.

2) Generate a pair of SSH keys:

ssh-keygen -t rsa

3) Copy the keys to the remote host:

# ssh-copy-id -i ~/.ssh/id_rsa.pub [email protected]

This command should be repeated for all hosts.

That's all, now you do not need to enter the password every time.

 

0 0

Share the article with your friends in social networks, maybe it will be useful to them.


If the article helped you, you can >>thank the author<<