Skip to content

First create the .ssh directory if it doesn't exist.#48

Open
Clewsy wants to merge 1 commit intohak5:gh-pagesfrom
Clewsy:missing_known_hosts_fix
Open

First create the .ssh directory if it doesn't exist.#48
Clewsy wants to merge 1 commit intohak5:gh-pagesfrom
Clewsy:missing_known_hosts_fix

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