SSH KEY
1. generate key ssh pada controller agar host tidak perlu memasukan password untuk login ssh ke VPS
ssh-keygen -t rsa
enerating public/private rsa key pair.
Enter file in which to save the key (/root/.ssh/id_rsa):
Created directory '/root/.ssh'.
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /root/.ssh/id_rsa
Your public key has been saved in /root/.ssh/id_rsa.pub
The key fingerprint is:
SHA256:Ds8bAuZgjCxvugEJoM7zJ2TgfhSrOOmKw8OGR6/HRsw root@robiansyah-ThinkPad-T480
The key's randomart image is:
+---[RSA 3072]----+
|. |
|o |
|o. . |
|*+. o |
|=*+Bo . S |
|=+O+E. = |
|O+oB... = |
|=Xo B . o |
|B=o+ . |
+----[SHA256]-----+copi id pub key controller ke server VPS
ssh-copy-id [email protected]ssh-copy-id [email protected]Last updated