====== Chave SSH ====== $ ssh-keygen -t ed25519 Generating public/private ed25519 key pair. Enter file in which to save the key (/home/gean/.ssh/id_ed25519): Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in /home/gean/.ssh/id_ed25519 Your public key has been saved in /home/gean/.ssh/id_ed25519.pub The key fingerprint is: SHA256:LRfyaMBCc+nFBbvUZw/4BIFxA+LeboyAByDqEl0zCXw gean@inspiron-15-5510 The key's randomart image is: +--[ED25519 256]--+ |o...*.oo+**. | |oo.oEB..++ + | |o o...+.+ + = | |.. o o.+ * * o | |... o . S + . . | |. . . = o | | . + | | . | | | +----[SHA256]-----+ $ ls ~/.ssh/id_* /home/gean/.ssh/id_ed25519 /home/gean/.ssh/id_ed25519.pub $ ssh-copy-id 192.168.0.6 /usr/bin/ssh-copy-id: INFO: Source of key(s) to be installed: "/home/gean/.ssh/id_ed25519.pub" /usr/bin/ssh-copy-id: INFO: attempting to log in with the new key(s), to filter out any that are already installed /usr/bin/ssh-copy-id: INFO: 1 key(s) remain to be installed -- if you are prompted now it is to install the new keys gean@192.168.0.6's password: Number of key(s) added: 1 Now try logging into the machine, with: "ssh '192.168.0.6'" and check to make sure that only the key(s) you wanted were added. $ ssh 192.168.0.6 Last failed login: Sat Aug 19 19:32:51 -03 2023 from 192.168.0.2 on ssh:notty There were 4 failed login attempts since the last successful login. Last login: Sat Aug 19 19:26:34 2023 from 192.168.0.2 [gean@ol9-kvm ~]$