Skip to content

Commit 50637f2

Browse files
committed
ci: update ssh service instruction
1 parent 569310d commit 50637f2

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
# Note, test in `./test/options` require SSH to pass the LANG env variable
2020
# However, I failed to enable it
2121
# Paliative solution is to pass the CI_DISABLE_SSH_ENV var to disable testing
22-
- run: sudo apt install -y openssh-server && sudo sed -E -i 's|^#?(PermitUserEnvironment)\s.*|\1 yes|' /etc/ssh/sshd_config && sudo systemctl start sshd
22+
- run: sudo apt install -y openssh-server && sudo sed -E -i 's|^#?(PermitUserEnvironment)\s.*|\1 yes|' /etc/ssh/sshd_config && sudo systemctl start ssh
2323
- run: ssh-keygen -t ed25519 -f ~/.ssh/id_ed25519 -N ''
2424
- run: cat ~/.ssh/id_ed25519.pub > ~/.ssh/authorized_keys
2525
- run: npm ci

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
# Note, test in `./test/options` require SSH to pass the LANG env variable
3333
# However, I failed to enable it
3434
# Paliative solution is to pass the CI_DISABLE_SSH_ENV var to disable testing
35-
- run: sudo apt install -y openssh-server && sudo sed -E -i 's|^#?(PermitUserEnvironment)\s.*|\1 yes|' /etc/ssh/sshd_config && sudo systemctl start sshd
35+
- run: sudo apt install -y openssh-server && sudo sed -E -i 's|^#?(PermitUserEnvironment)\s.*|\1 yes|' /etc/ssh/sshd_config && sudo systemctl start ssh
3636
- run: ssh-keygen -t ed25519 -f ~/.ssh/id_ed25519 -N ''
3737
- run: cat ~/.ssh/id_ed25519.pub > ~/.ssh/authorized_keys
3838
- run: npm ci

0 commit comments

Comments
 (0)