It would be nice to have an option to run ssh-agent in foreground without forking. This will simplify ssh-agent integration with process managers or containers when it is expected that service is not forking. The current -d flag is not suitable for that as it also activates the debug log.
Created attachment 2602 [details] Add ssh-agent -D flag for foreground without debug Sounds reasonable. This adds a -D option (similar to sshd) that puts ssh-agent in the foreground but does not enable debugging. It also bumps the debug level for -d to DEBUG3. It still prints the shell commands to get the environment to stdout, since users might want to capture these for sourcing into shell initialisation. $ ./ssh-agent -D SSH_AUTH_SOCK=/tmp/ssh-evSXau5OLQvF/agent.11610; export SSH_AUTH_SOCK; echo Agent pid 11610;
applied - this will be in openssh-6.9
Close all resolved bugs after 7.3p1 release