Advertisement
Guest User

Untitled

a guest
Oct 21st, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.92 KB | None | 0 0
  1. #commentz
  2. $ #non-root console
  3. # # root console
  4.  
  5. # useradd -m anek
  6. # #passwd -l anek #lock (disable) password, not needed because no password by default
  7.  
  8. # sudo -u anek -s
  9. anek$ ssh-keygen -t ed25519ssh-keygen -t ed25519
  10. Generating public/private ed25519 key pair.
  11. Enter file in which to save the key (/home/anek/.ssh/id_ed25519):
  12. Created directory '/home/anek/.ssh'.
  13. Enter passphrase (empty for no passphrase):
  14. Enter same passphrase again:
  15. Your identification has been saved in /home/anek/.ssh/id_ed25519.
  16. Your public key has been saved in /home/anek/.ssh/id_ed25519.pub.
  17. The key fingerprint is:
  18. SHA256:bbfVs8lfktz7yFI2fIPcaxO9v6xmnnAjXDFFU0ogvn4 anek@anek-G31M-ES2L
  19. The key's randomart image is:
  20. +--[ED25519 256]--+
  21. | . ..o+o|
  22. | . . ....|
  23. | . o. |
  24. | . . o. |
  25. | S + oo+.o|
  26. anek$ cp .ssh/id_ed25519.pub .ssh/authorized_keys
  27. mail .ssh/id_ed25519 or scp it via ssh
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement