Skip to content

Conversation

@Clewsy
Copy link

@Clewsy Clewsy commented Aug 21, 2023

If no .ssh directory has yet been created, starting autossh throws an error:

touch: /root/.ssh/known_hosts: No such file or directory

Subsequently, the grep command also fails:

grep: /root/.ssh/known_hosts: No such file or directory

This commit will ensure the .ssh directory exists before attempting to touch known_hosts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant