key_ssh
Differences
This shows you the differences between two versions of the page.
| key_ssh [2025/07/26 17:09] – - Imported by DokuWiki Advanced Plugin wikiadm | key_ssh [Unknown date] (current) – removed - external edit (Unknown date) 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== Chave SSH ====== | ||
| - | <code bash> | ||
| - | $ ssh-keygen -t rsa -b 4096 | ||
| - | Generating public/ | ||
| - | Enter file in which to save the key (/ | ||
| - | Created directory '/ | ||
| - | Enter passphrase (empty for no passphrase): | ||
| - | Enter same passphrase again: < | ||
| - | Your identification has been saved in / | ||
| - | Your public key has been saved in / | ||
| - | The key fingerprint is: | ||
| - | SHA256: | ||
| - | The key's randomart image is: | ||
| - | +---[RSA 4096]----+ | ||
| - | | ..+=o*o. | ||
| - | | +o oo= . | | ||
| - | | .E.o . | | ||
| - | | . + + . | | ||
| - | | . = + S | | ||
| - | | o = + | | ||
| - | | + + + o | | ||
| - | | .ooX.*.o. | ||
| - | | | ||
| - | +----[SHA256]-----+ | ||
| - | </ | ||
| - | <code bash> | ||
| - | $ ls ~/.ssh/ | ||
| - | id_rsa | ||
| - | </ | ||
| - | |||
| - | <code bash> | ||
| - | $ cat ~/ | ||
| - | ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDNmhcsJg8knKZFM4yaDtEMk1p3uJgPxxWcMCcn7BfP5oIopIz6quPD6t2E+lWIrqeW63npMt5VDqbztrs/ | ||
| - | </ | ||
| - | |||
| - | <code bash> | ||
| - | $ ssh-copy-id 177.75.176.41 | ||
| - | / | ||
| - | The authenticity of host ' | ||
| - | ECDSA key fingerprint is SHA256: | ||
| - | Are you sure you want to continue connecting (yes/ | ||
| - | / | ||
| - | / | ||
| - | gean@177.75.176.41' | ||
| - | |||
| - | Number of key(s) added: 1 | ||
| - | |||
| - | Now try logging into the machine, with: " | ||
| - | and check to make sure that only the key(s) you wanted were added. | ||
| - | </ | ||
| - | |||
| - | <code bash> | ||
| - | $ ssh 177.75.176.41 | ||
| - | Linux kube-worker-01.juntotelecom.com.br 5.10.0-13-amd64 #1 SMP Debian 5.10.106-1 (2022-03-17) x86_64 | ||
| - | |||
| - | The programs included with the Debian GNU/Linux system are free software; | ||
| - | the exact distribution terms for each program are described in the | ||
| - | individual files in / | ||
| - | |||
| - | Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent | ||
| - | permitted by applicable law. | ||
| - | Last login: Sat Apr 16 11:02:43 2022 from 2804: | ||
| - | </ | ||
| - | |||
| - | <code bash> | ||
| - | $ ls .ssh/ | ||
| - | authorized_keys | ||
| - | </ | ||
| - | |||
| - | <code bash> | ||
| - | $ cat .ssh/ | ||
| - | ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDNmhcsJg8knKZFM4yaDtEMk1p3uJgPxxWcMCcn7BfP5oIopIz6quPD6t2E+lWIrqeW63npMt5VDqbztrs/ | ||
| - | </ | ||
key_ssh.1753560544.txt.gz · Last modified: by wikiadm
