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:
-t ed25519
Specifies the modern and recommended Ed25519 key type.-C "your_email@example.com"
Adds a comment (usually your email) for easy identification.
When prompted:
-
Enter a file in which to save the key:
Press Enter to accept the default location
(~/.ssh/id_ed25519). -
Enter passphrase:
Enter a secure passphrase for extra security, or press
Enter to leave it empty (less secure).You will need this passphrase every time you use the key
unless you use an SSH agent.
Generated files:
The command creates two files in the ~/.ssh/ directory:
-
id_ed25519
Your private key (keep this secure and secret). -
id_ed25519.pub
Your public key (this is what you will share).
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:
- Log in to your AUR account on the official AUR website.
- Go to Account Settings.
- Find the SSH Public Key field.
- Paste the public key (single continuous line).
- Save the changes.
Step 3: Configure SSH (Recommended)
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