Generate keys and disable password login
On client
ssh-keygen -t rsa -b 4096 -f ~/.ssh/share_key
On server
adduser $USER
Copy key to server
ssh-copy-id -f -i .ssh/sharekey.pub user@target.com
Proxmox sidenote:
In the Proxmox web UI:
-
Go to Datacenter → Permissions → Users → Add.
-
Add
adminuser@pam(auth realm = PAM).
Then assign permissions:
-
Go to Datacenter → Permissions → Add → User Permission.
-
User =
adminuser@pam -
Path =
/ -
Role =
Administrator
Test if logins work!
/etc/ssh/sshd_config
PasswordAuthentication no
PermitRootLogin no
No comments to display
No comments to display