Servidores Web
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
0839 – Linux – servidores <strong>Web</strong><br />
Your identification has been saved in /home/ftal/.ssh/id_rsa.<br />
Your public key has been saved in /home/ftal/.ssh/id_rsa.pub.<br />
The key fingerprint is:<br />
21:bc:50:c6:1e:b1:7a:db:e8:d8:d8:d6:b5:57:4c:dd ftal@trab<br />
The key's randomart image is:<br />
+--[ RSA 2048]----+<br />
| .+. |<br />
| +o. |<br />
| ..+.. ..|<br />
| o.o . . E|<br />
| . o S o |<br />
| . + . o |<br />
| o... . . |<br />
| *. . . . |<br />
| o.+ . |<br />
+-----------------+<br />
ftal@trab [~] $ ssh-copy-id -i .ssh/id_rsa.pub fulano@casa<br />
Now try logging into the machine, with "ssh 'fulano@casa'", and check in:<br />
.ssh/authorized_keys<br />
to make sure we haven't added extra keys that you weren't expecting.<br />
ftal@trab [~] $ _<br />
Entre os dois métodos, prefira sempre o fácil, pois ele faz muito mais do que apenas<br />
copiar a chave pública; ele:<br />
verifica as permissões do diretório .ssh do servidor para garantir sua segurança<br />
confere se o arquivo de chaves autorizadas é mesmo o padrão<br />
(~/.ssh/authorized_keys)<br />
ABÍLIO ALECRIM 33