Adding XDG BDS paths *as fallbacks only*, not replacing ~/.ssh

Brian Candler b.candler at pobox.com
Sat Feb 3 03:01:51 AEDT 2024


On 02/02/2024 15:25, 90 wrote:
> to relocate the entire directory to one XDG-compliant path if the
> user chooses to do so?

How about this?

mv ~/.ssh $XDG_DATA_HOME/ssh
ln -s $XDG_DATA_HOME/ssh ~/.ssh

This has the added advantage of not having to remember to set an 
environment variable in every shell (and which might be dropped by 
utilities like "sudo")


More information about the openssh-unix-dev mailing list