We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fdff80d commit ba11f7cCopy full SHA for ba11f7c
.github/workflows/linux-tests.yml
@@ -136,7 +136,7 @@ jobs:
136
run: |
137
sudo sed -i 's/#PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config
138
sudo sed -i 's/#PasswordAuthentication yes/PasswordAuthentication no/' /etc/ssh/sshd_config
139
- sudo systemctl restart ssh
+ sudo service ssh restart || sudo systemctl restart ssh
140
mkdir -p ~/.ssh
141
ssh-keygen -t rsa -b 4096 -N "" -f ~/.ssh/id_rsa
142
cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
0 commit comments