-
Notifications
You must be signed in to change notification settings - Fork 172
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create ssh.yml, a workflow to access a cloud machine via ssh
- Loading branch information
1 parent
858435f
commit 699cb40
Showing
1 changed file
with
19 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |