This work is produced by Jacob Lindehoff for the course System Administration I (1DV031) at Linnaeus University.
All content in this work excluding photographs, icons, picture of course literature and Linnaeus University logotype and symbol, is licensed under a Creative Commons Attribution 4.0 International License
If you change the content do not use the photographs, icons, picture of the course literature or Linnaeus University logotype and symbol in your new work!
At all times you must give credit to: ”Linnaeus university – System Administration I (1DV031)” with the link https://coursepress.lnu.se/kurs/systemadministrationi/ and to the Creative Common-license above.
From Ancient Greek: κρυπτός, kryptós "hidden, secret"; and γράφειν graphein, "to write"
ssh-keygen
Generating public/private rsa key pair.
Enter file in which to save the key (/home/ubuntu/.ssh/id_rsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /home/ubuntu/.ssh/id_rsa.
Your public key has been saved in /home/ubuntu/.ssh/id_rsa.pub.
ssh-copy-id -i ~/.ssh/id_rsa.pub user@remot-ip
ssh user@remot-ip
or
ssh -i ~/.ssh/id_rsa.pub user@remot-ip