User Tools

Site Tools


key_ssh

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

key_ssh [2025/07/26 17:09] – - Imported by DokuWiki Advanced Plugin wikiadmkey_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/private rsa key pair. 
-Enter file in which to save the key (/home/gean/.ssh/id_rsa): <ENTER> 
-Created directory '/home/gean/.ssh'. 
-Enter passphrase (empty for no passphrase): <ENTER> 
-Enter same passphrase again: <ENTER> 
-Your identification has been saved in /home/gean/.ssh/id_rsa 
-Your public key has been saved in /home/gean/.ssh/id_rsa.pub 
-The key fingerprint is: 
-SHA256:FLDPaT4OL7Zdownz6uLB33bnCCCZ0qcFFCQ8WTcbaaQ gean@kube-ctrl-pl-01.juntotelecom.com.br 
-The key's randomart image is: 
-+---[RSA 4096]----+ 
-| ..+=o*o.        | 
-|  +o oo= .       | 
-|   .E.o .        | 
-|   . + + .       | 
-|  . = + S        | 
-|   o = +         | 
-|    + + + o      | 
-|    .ooX.*.o.    | 
-|   ..+==O..o.    | 
-+----[SHA256]-----+ 
-</code> 
  
-<code bash> 
-$ ls ~/.ssh/ 
-id_rsa  id_rsa.pub 
-</code> 
- 
-<code bash> 
-$ cat ~/.ssh/id_rsa.pub 
-ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDNmhcsJg8knKZFM4yaDtEMk1p3uJgPxxWcMCcn7BfP5oIopIz6quPD6t2E+lWIrqeW63npMt5VDqbztrs/oYC87dpxPnjGEcD8qhxemgJC7g9Vnb53xgdDSQa/nWJ/gdkcm+Q+mlYtU4GF2F4p2qUUjeERJB/PGvlmkh6/WxdX5yAps7yaZD81IXL1rNkYqV2JYH4DHsGOGlTer0aLrrwk+Ix+u3D3jE7QstES7g1ez/rpkRviNGdn349TQWUVzh/m8IqRozjMrGJcMsF55mk67CtyG/7475f8E+hoLwp3Nz29Ui3ao43sewhmkDQHQlLtGVBy7d5zjXf8olhutVlHy1KXwVMR6ar3arEZUjoZikyZfuksH2SpErHS6ENMWMv6g+Pejk1PurxsMCqeTU87PaG9nIDWDIV/H/2Y1ZfbWNMh7tB/gSStrFwOqYPbhjzOASIfCnUDta2IjtOurtuxX8gViLtWWlNYtmefRyjehSfGvhastECKjfcLbEOzWNwhp6BTVxKEyHXlInGSJUYwX3phKQ0/LqO4O655TtyNDmRpqzIcv0P8GJWd1tBuK4oE2Vk6simRF01AjYN56PNOfOv2n+nRWFqDNQRvplrDKeyOpVG4CWubcuN+cVa1Z1AXSerfW7TUp4QwbQZTvitkPhGtuBTcI50nFzqWz+UKbw== gean@kube-ctrl-pl-01.juntotelecom.com.br 
-</code> 
- 
-<code bash> 
-$ ssh-copy-id 177.75.176.41 
-/usr/bin/ssh-copy-id: INFO: Source of key(s) to be installed: "/home/gean/.ssh/id_rsa.pub" 
-The authenticity of host '177.75.176.41 (177.75.176.41)' can't be established. 
-ECDSA key fingerprint is SHA256:voXZj8/DCBp7boSjQt0eZOD5/rtpc6ixh5OVtSdDqQk. 
-Are you sure you want to continue connecting (yes/no/[fingerprint])? yes 
-/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@177.75.176.41's password: <ENTRE COM A SENHA> 
- 
-Number of key(s) added: 1 
- 
-Now try logging into the machine, with:   "ssh '177.75.176.41'" 
-and check to make sure that only the key(s) you wanted were added. 
-</code> 
- 
-<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 /usr/share/doc/*/copyright. 
- 
-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:694:3000:4001::1000 
-</code> 
- 
-<code bash> 
-$ ls .ssh/ 
-authorized_keys 
-</code> 
- 
-<code bash> 
-$ cat .ssh/authorized_keys 
-ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDNmhcsJg8knKZFM4yaDtEMk1p3uJgPxxWcMCcn7BfP5oIopIz6quPD6t2E+lWIrqeW63npMt5VDqbztrs/oYC87dpxPnjGEcD8qhxemgJC7g9Vnb53xgdDSQa/nWJ/gdkcm+Q+mlYtU4GF2F4p2qUUjeERJB/PGvlmkh6/WxdX5yAps7yaZD81IXL1rNkYqV2JYH4DHsGOGlTer0aLrrwk+Ix+u3D3jE7QstES7g1ez/rpkRviNGdn349TQWUVzh/m8IqRozjMrGJcMsF55mk67CtyG/7475f8E+hoLwp3Nz29Ui3ao43sewhmkDQHQlLtGVBy7d5zjXf8olhutVlHy1KXwVMR6ar3arEZUjoZikyZfuksH2SpErHS6ENMWMv6g+Pejk1PurxsMCqeTU87PaG9nIDWDIV/H/2Y1ZfbWNMh7tB/gSStrFwOqYPbhjzOASIfCnUDta2IjtOurtuxX8gViLtWWlNYtmefRyjehSfGvhastECKjfcLbEOzWNwhp6BTVxKEyHXlInGSJUYwX3phKQ0/LqO4O655TtyNDmRpqzIcv0P8GJWd1tBuK4oE2Vk6simRF01AjYN56PNOfOv2n+nRWFqDNQRvplrDKeyOpVG4CWubcuN+cVa1Z1AXSerfW7TUp4QwbQZTvitkPhGtuBTcI50nFzqWz+UKbw== gean@kube-ctrl-pl-01.juntotelecom.com.br 
-</code> 
key_ssh.1753560544.txt.gz · Last modified: by wikiadm