#2964 Issue closed: setup/default/005_ssh_agent_start.sh wrongly assumes that /root/.ssh/config exists

Labels: bug, fixed / solved / done

schlomo opened issue at 2023-03-30 13:42:

during rear recover I observed:

2023-03-03 09:20:20.602820123 Including setup/default/005_ssh_agent_start.sh
2023-03-03 09:20:20.608636246 Starting up ssh-agent
2023-03-03 09:20:20.611642833 Added 'ssh-agent -k >/dev/null' as an exit task
Agent pid 1513
/usr/share/rear/setup/default/005_ssh_agent_start.sh: line 16: /root/.ssh/config: No such file or directory
2023-03-03 09:20:20.618300993 Source function: 'source /usr/share/rear/setup/default/005_ssh_agent_start.sh' returns 1

I guess the code should create /root/.ssh if it doesn't exist


[Export of Github issue for rear/rear.]