Skip to content

Problem accessing GitHub, the SSH agent doesn't automatically start #8011

@Ctrl-Alb

Description

@Ctrl-Alb

Creating a bug report/issue

  • I have searched the existing open and closed issues

Required Information

  • DietPi version | G_DIETPI_VERSION_CORE=10 G_DIETPI_VERSION_SUB=1 G_DIETPI_VERSION_RC=2 G_GITBRANCH='master' G_GITOWNER='MichaIng'
  • Distro version | bookworm 0
  • Kernel version | Linux DietPi 6.12.62+rpt-rpi-v8 #1 SMP PREEMPT Debian 1:6.12.62-1+rpt1~bookworm (2026-01-19) aarch64 GNU/Linux
  • SBC model | RPi 4 Model B (aarch64)
  • Power supply used | Raspberry Pi 4 official power supply
  • SD card used | Raspberry Pi micro SD

Additional Information (if applicable)

  • Software title | ssh-agent
  • Was the software title installed freshly or updated/migrated? Installed freshly
  • Can this issue be replicated on a fresh installation of DietPi?
  • Bug report ID | echo $G_HW_UUID

Steps to reproduce

  1. Install OpenSSH and Fish using dietpi-software (to replicate my setup)
  2. Create an SSH key using this command: ssh-keygen -t ed25519 -C "Dotfiles - DietPi" -f ~/.ssh/dotfiles-dietpi
  3. Copy and paste the key into the GitHub SSH and GPG settings
  4. Verify the connection using: ssh -T git@github.com

Expected behaviour

  • The connection to GitHub should succeed without any error messages.

Actual behaviour

  • The following error appears: git@github.com: Permission denied (publickey).

Extra details

  • I was able to temporarily solve the issue by manually starting the SSH agent and adding the key with these commands (using the Fish shell):
eval (ssh-agent -c)
ssh-add ~/.ssh/dotfiles-dietpi
  • However, this workaround does not persist after a reboot.
    I would like to know whether this behavior is expected or if it might be a bug. Additionally, what is the recommended way to ensure that the SSH agent starts automatically and loads my key after every reboot?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions