Detect sshd service name or make configurable
See original GitHub issueHandler:
- name: reload sshd configuration
service:
name: sshd
state: reloaded
Fails with:
Could not find the requested service sshd: host
On distros where the service name is ssh
.
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
sshd_config - How to Configure the OpenSSH Server?
Usually, this file is /etc/ssh/sshd_config , but the location can be changed using the -f command line option when starting sshd. Some organizations...
Read more >OpenSSH Tip: Check Syntax Errors before Restarting SSHD ...
This page explains how to check the OpenSSH sshd server configuration file for syntax errors under Linux/Unix using the command-line option.
Read more >OpenSSH Server configuration for Windows - Microsoft Learn
This article covers the Windows-specific configuration for OpenSSH Server (sshd). OpenSSH maintains detailed documentation for configuration ...
Read more >Example: sshd - IBM
Use the netstat -a command and evaluate the output by looking for the SSHD jobname: # netstat -a ... SSHD 00000049 Listen Local...
Read more >How to Enable and Configure SSH Server on Windows with ...
Set-Service -Name sshd -StartupType 'Automatic' Start-Service sshd. start sshd service on windows 10. Use the netstat command to make sure ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@lae
Release
Source
Systemd
Good find! I didn’t realize that was handled with an alias.
It is also in my
/lib/systemd/system/ssh.service
file.I see it was under
Install
, so I did this:And now it works with the alias:
So it appears this would only be an issue for folks who don’t have SSH on boot enabled (an admittedly rare case).
Thank you for pointing me in the right direction.