[Bug 1227767] New: ssh-agent unable to export its variables
https://bugzilla.suse.com/show_bug.cgi?id=1227767 Bug ID: 1227767 Summary: ssh-agent unable to export its variables Classification: openSUSE Product: openSUSE Tumbleweed Version: Slowroll Hardware: aarch64 OS: openSUSE Tumbleweed Status: NEW Severity: Normal Priority: P5 - None Component: Network Assignee: screening-team-bugs@suse.de Reporter: tamara.zoe.schmitz@posteo.de QA Contact: qa-bugs@suse.de Target Milestone: --- Found By: --- Blocker: --- Created attachment 876048 --> https://bugzilla.suse.com/attachment.cgi?id=876048&action=edit ssh-agent strace In a bash shell, launching ssh-agent is unable to export its variables after launching. I observed this both on a desktop and a headless MicroOS system both running aarch64 CPUs from different vendors and different microarchitectures. So I believe this to be an aarch64 specific bug. The ssh-agent binary is part of the openssh-clients package which is built from the openssh.spec. Observed behaviour: $ ssh-agent SSH_AUTH_SOCK=/tmp/ssh-XXXXXX4k26MF/agent.26053; export SSH_AUTH_SOCK; SSH_AGENT_PID=26054; export SSH_AGENT_PID; echo Agent pid 26054; $ ssh-agent -k SSH_AGENT_PID not set, cannot kill agent $ printenv | grep -i SSH $ System Info: openSUSE Tumbleweed Aarch64 VERSION_ID="20240629" openssh-clients-9.6p1-11.1.aarch64 SELinux originally Enforcing, but using setenforce changed to Permissive. No change. Attached is an strace of running ssh-agent. -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1227767 https://bugzilla.suse.com/show_bug.cgi?id=1227767#c1 --- Comment #1 from Tamara Schmitz <tamara.zoe.schmitz@posteo.de> --- As an additional note. The export is failing and so `ssh-agent -k` is failing but ssh-agent is running as I can confirm with `pidof ssh-agent`. The envs are not set correctly, that is the problem. -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1227767 Tamara Schmitz <tamara.zoe.schmitz@posteo.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Version|Slowroll |Current -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1227767 https://bugzilla.suse.com/show_bug.cgi?id=1227767#c2 Neil Rickert <nwr10cst-oslnx@yahoo.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |nwr10cst-oslnx@yahoo.com --- Comment #2 from Neil Rickert <nwr10cst-oslnx@yahoo.com> --- To me, this looks normal. If you use the command: ssh-agent bash Then it will export its environment variable to the "bash" shell that it starts. But if you just use: ssh-agent then there is no subcommand to which it can export. You should probably be using: eval `ssh-agent -s` or eval $(ssh-agent -s) When starting "ssh-agent" this way, its output is caught by the shell and then run as a shell command. And the shell then exports the needed variables. Check the man pages for "ssh-agent". -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1227767 https://bugzilla.suse.com/show_bug.cgi?id=1227767#c3 Tamara Schmitz <tamara.zoe.schmitz@posteo.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |INVALID --- Comment #3 from Tamara Schmitz <tamara.zoe.schmitz@posteo.de> --- Yeah oops. Does seem to be a misunderstanding on my part. -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@suse.com