privatni a verejny klic
Kategorie: linux

ssh-keygen -t rsa
cat vps.pub >> /root/.ssh/authorized_keys


kde se chceme dostat pridame verejny klic
.ssh/authorized_keys

odkud jdem pridame privatni klic a to bud zde
.ssh/id_dsa

nebo (nektere klice nebudou fungovat, podivat se do /var/log/auth.log )
/root/.ssh/identity


povolit prihlaseni serveru pomoci ssh
/etc/ssh/sshd_config

RSAAuthentication yes
PubkeyAuthentication yes


24.2.2021 20:01:53