User Tools

Site Tools


howto:sshkey

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
howto:sshkey [2025/07/08 23:26] – [Password authentication is disabled on the remote host] jnilssonhowto:sshkey [2025/07/22 17:42] (current) – [Ask for help from SSCS] jnilsson
Line 2: Line 2:
 ===== Generating keys ===== ===== Generating keys =====
 === ssh-keygen === === ssh-keygen ===
-You use the tool "ssh-keygen" to create your public-private key pair.  Depending on what you need to do, there are many options available, but here is an example session showing how you can run **''ssh-keygen''**:+You use the tool "**ssh-keygen**" to create your public-private key pair. Here is an example session showing how you can run ssh-keygen:
 <code bash> <code bash>
 [user@host ~]$ ssh-keygen -t ed25519 -C "Add a Description to easily tell which machine this belongs to" [user@host ~]$ ssh-keygen -t ed25519 -C "Add a Description to easily tell which machine this belongs to"
Line 10: Line 10:
 Enter same passphrase: [Enter to leave empty] Enter same passphrase: [Enter to leave empty]
 </code> </code>
-You should leave the default values above by simply hitting Enter three times.  The private key is created in id_ed25519 and the matching public key is id_ed25519.pub. The id_ed25519 file name is what ssh will look for when attempting public-key authentication (unless specified differently using the IdentityFile variable in the global config file /etc/ssh/ssh_config or your local config file ~/.ssh/config).+You should leave the default values above by simply hitting **Enter** three times.  The private key is created in id_ed25519 and the matching public key is id_ed25519.pub. The id_ed25519 file name is what ssh will look for when attempting public-key authentication (unless specified differently using the IdentityFile variable in the global config file /etc/ssh/ssh_config or your local config file ~/.ssh/config).
  
 ===== Distributing your public key ===== ===== Distributing your public key =====
Line 18: Line 18:
  
 There are different ways to distribute and set up the authorized_keys file depending on your situation: There are different ways to distribute and set up the authorized_keys file depending on your situation:
 +
 +==== Ask for help from SSCS ====
 +
 +You can always ask for help from [[socit@uci.edu]] and we'll work with you to get your public key set up.
 +
 +If you want to DIY, you can try one of the methods below:
  
 ==== Local Console Access ==== ==== Local Console Access ====
howto/sshkey.1752017188.txt.gz · Last modified: 2025/07/08 23:26 by jnilsson