diff options
author | Christian Breunig <christian@breunig.cc> | 2024-06-22 17:25:12 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-22 17:25:12 +0200 |
commit | 4732b35923ed57d1f0da7f1cac511141fa88e006 (patch) | |
tree | 43722ff312c777344dad28445aeadd9429d91357 | |
parent | 569b29eafda7073f95784786cf34387df53f2b35 (diff) | |
parent | 059eb3a137a75d502632174cc028b81f49152782 (diff) | |
download | vyos-1x-4732b35923ed57d1f0da7f1cac511141fa88e006.tar.gz vyos-1x-4732b35923ed57d1f0da7f1cac511141fa88e006.zip |
Merge pull request #3702 from c-po/T6503-restart-ssh
op-mode: T6503: "restart ssh" command not working
-rw-r--r-- | op-mode-definitions/restart-ssh.xml.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/op-mode-definitions/restart-ssh.xml.in b/op-mode-definitions/restart-ssh.xml.in index 6504cc18a..543cafc24 100644 --- a/op-mode-definitions/restart-ssh.xml.in +++ b/op-mode-definitions/restart-ssh.xml.in @@ -6,7 +6,7 @@ <properties> <help>Restart SSH service</help> </properties> - <command>if cli-shell-api existsActive service ssh; then sudo systemctl restart ssh.service; else echo "Service SSH not configured"; fi</command> + <command>if cli-shell-api existsActive service ssh; then sudo systemctl restart "ssh@*.service"; else echo "Service SSH not configured"; fi</command> </node> </children> </node> |