setup_ssh_aur_archlinux


"/home/yossef/notes/personal/linux/setup_ssh_aur_archlinux.md"

path: personal/linux/setup_ssh_aur_archlinux.md

- **fileName**: setup_ssh_aur_archlinux
- **Created on**: 2025-12-22 20:48:27

Step 1: Generate an SSH Key Pair

Open your terminal in Arch Linux and run the ssh-keygen
command to create a new key pair using the secure Ed25519
algorithm.

ssh-keygen -t ed25519 -C "your_email@example.com"

Explanation:

When prompted:

Generated files:

The command creates two files in the ~/.ssh/ directory:


Step 2: Add the Public Key to Your AUR Account

Copy the public key to your clipboard. You can use cat
with a clipboard utility such as xclip or wl-copy
(install one if needed).

cat ~/.ssh/id_ed25519.pub | xclip -selection clipboard

For Wayland users:

cat ~/.ssh/id_ed25519.pub | wl-copy

Alternatively, open the file in a text editor and copy
the entire line:

nano ~/.ssh/id_ed25519.pub

The key should start with ssh-ed25519 and end with
your comment.

Add the key to AUR:

  1. Log in to your AUR account on the official AUR website.
  2. Go to Account Settings.
  3. Find the SSH Public Key field.
  4. Paste the public key (single continuous line).
  5. Save the changes.

To simplify connecting to the AUR, configure your SSH
client to use the correct user and key.

Edit (or create) the SSH config file:

nano ~/.ssh/config

Add the following configuration:

Host aur.archlinux.org
    User aur
    IdentityFile ~/.ssh/id_ed25519
    AddKeysToAgent yes

This ensures your SSH client automatically uses the
correct username and private key when connecting to AUR.


Step 4: Test the Connection

Test the SSH connection to the AUR server:

ssh aur@aur.archlinux.org

If successful, you will see a welcome message without
being prompted for a password.
You may be asked for your key’s passphrase the first time
in a new session.
You are now ready to interact with the AUR using SSH 🎉

continue:[[]]
before:./nvidia_setup.md