Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add example: SSH config to a timerd config file #1

Open
chx opened this issue May 22, 2021 · 1 comment
Open

Add example: SSH config to a timerd config file #1

chx opened this issue May 22, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@chx
Copy link

chx commented May 22, 2021

As noted in https://superuser.com/a/1142813/41259 SSH not only has an include file feature but also "Include directive may appear inside a Match or Host block to perform conditional inclusion." so the easiest way to integrate with SSH is to write the "Hostname ...." section into a file periodically. Currently the examples folder is about the server, perhaps move these examples into a server folder and add a client directory with a client side timerd example.

@chx chx changed the title Write the SSH config into a file Add example: SSH config to a timerd config file May 22, 2021
@mikroskeem mikroskeem added the enhancement New feature or request label May 22, 2021
@mikroskeem
Copy link
Owner

mikroskeem commented May 23, 2021

WIP in feature/ssh-client-config-gen branch

Does not support multiple hosts yet clearly, but shouldn't be hard to implement with a little bit of shell scripting.

Host domain.tld
    Include /var/run/tosh/host-config

Picked /var/run to prevent generating unnecessary disk I/o (/var/run sits on tmpfs these days)

Technically can add user timer as well, would write file to a path under XDG_RUNTIME_DIR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants