I wanted to start ssh-agent on startup. Based on the arch wili I created a systemd service under my user and also placed the cofig in .pam_environment file.
Now when I try to login it just hangs.
Please help is there a way to get into the system abd delete the files I created so that I can login.
Beliw are ths instructions I follwed from arch wiki -
~/.config/systemd/user/ssh-agent.service
[Unit]
Description=SSH key agent
[Service]
Type=simple
Environment=SSH_AUTH_SOCK=%t/ssh-agent.socket
# DISPLAY required for ssh-askpass to work
Environment=DISPLAY=:0
ExecStart=/usr/bin/ssh-agent -D -a $SSH_AUTH_SOCK
[Install]
WantedBy=default.target
Add SSH_AUTH_SOCK DEFAULT="${XDG_RUNTIME_DIR}/ssh-agent.socket" to ~/.pam_environment .
Boot up from the USB stick or optical medium that you used for installing the system. Once booted up, open up a terminal window and issue the command…
su -
Enter the live session’s root password. Now enter the following command…
manjaro-chroot -a
If you have only one GNU/Linux installation, hit 1.
You are now in a chroot environment. If your /home is on a separate partition, enter the following command…
I’m afraid I’m not sufficiently versed in the magic incantations of the PAM security system, but I do know that having a .pam_environment file in your home directory is often a source for login failures.
There was also a significant change to PAM in one of the most recent updates, leading to exactly this sort of situation. Maybe the Arch Wiki needs updating?