Creating an SSH Key Using ssh-keygen

ssh-keygen -t rsa -b 4096 -C “your_comment_here”

Source: Creating an SSH Key Using ssh-keygen | Help – Illinois State

  • This public key is typically placed in the ~/.ssh/authorized_keys file within the user’s home directory on the server.
  • The ssh-copy-id utility can automate this process, copying the public key and setting correct permissions.