(port: string)
| 49 | return; |
| 50 | } catch { |
| 51 | throw error; |
| 52 | } |
| 53 | } |
| 54 | } |
| 55 | |
| 56 | async function isSshServiceActive(): Promise<boolean> { |
| 57 | for (const serviceName of ["sshd", "ssh"]) { |
| 58 | try { |
| 59 | await execFileAsync("systemctl", ["is-active", "--quiet", serviceName]); |
| 60 | return true; |
no outgoing calls
no test coverage detected