Skip to content

Commit ba11f7c

Browse files
committed
Use system service
1 parent fdff80d commit ba11f7c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/linux-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ jobs:
136136
run: |
137137
sudo sed -i 's/#PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config
138138
sudo sed -i 's/#PasswordAuthentication yes/PasswordAuthentication no/' /etc/ssh/sshd_config
139-
sudo systemctl restart ssh
139+
sudo service ssh restart || sudo systemctl restart ssh
140140
mkdir -p ~/.ssh
141141
ssh-keygen -t rsa -b 4096 -N "" -f ~/.ssh/id_rsa
142142
cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys

0 commit comments

Comments
 (0)