Skip to content

Commit

Permalink
Create ssh.yml, a workflow to access a cloud machine via ssh
Browse files Browse the repository at this point in the history
  • Loading branch information
oleg-alexandrov authored Sep 24, 2023
1 parent 858435f commit 699cb40
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/ssh.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: ssh
on:
workflow_dispatch:

jobs:
build:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: Setup upterm session
uses: lhotari/action-upterm@v1
with:
## Testing ssh access to macos cloud machine
## limits ssh access and adds the ssh public key for the user which triggered the workflow
limit-access-to-actor: true
## limits ssh access and adds the ssh public keys of the listed GitHub users
limit-access-to-users: oleg-alexandrov
## If no one connects after 5 minutes, shut down server.
wait-timeout-minutes: 5

0 comments on commit 699cb40

Please sign in to comment.