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 systemd unit #63

Open
glensc opened this issue Dec 18, 2023 · 1 comment
Open

Add example systemd unit #63

glensc opened this issue Dec 18, 2023 · 1 comment

Comments

@glensc
Copy link

glensc commented Dec 18, 2023

Could be just stored as file as example in the repository.

@glensc
Copy link
Author

glensc commented Dec 18, 2023

here's kickstart file

# /etc/systemd/system/ssh3-server.service
[Unit]
Description=SSH3: faster and rich secure shell using HTTP/3
After=network.target

[Service]
ExecStartPre=mkdir -p /etc/ssh3
ExecStartPre=sh -c 'test -e /etc/ssh3/cert.pem || openssl req -x509 -sha256 -nodes -newkey rsa:4096 -keyout /etc/ssh3/priv.key -days 3660 -out /etc/ssh3/cert.pem -subj "/C=XX/O=Default Company/OU=XX/CN=selfsigned.ssh3" -addext "subjectAltName = DNS:selfsigned.ssh3,DNS:*"'
ExecStart=/usr/local/sbin/ssh3-server -cert /etc/ssh3/cert.pem  -key /etc/ssh3/priv.key

[Install]
WantedBy=multi-user.target

to use:

systemctl daemon-reload 
systemctl start ssh3-server

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

No branches or pull requests

1 participant