Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/benoitchantre/setup-ssh-authentication-action

GitHub action to setup an SSH key-based authentication
https://github.com/benoitchantre/setup-ssh-authentication-action

actions authentication ssh

Last synced: about 1 month ago
JSON representation

GitHub action to setup an SSH key-based authentication

Awesome Lists containing this project

README

        

# Setup SSH authentication

This action installs your private key and related files in `~/.ssh` to allow an SSH key-based authentication with a remote server.

## Usage

```yaml
- name: Setup SSH key
uses: benoitchantre/[email protected]
with:
# Private key for connecting to remote hosts.
# Required.
private-key: ${{ secrets.PRIVATE_KEY }}

# Filename of the private key.
# Optional. Default to `id_rsa`
private-key-name: id_rsa

# The SSH configuration. Content of `~/.ssh/config` file.
# Optional.
ssh-config: ${{ secrets.SSH_CONFIG }}

# Content of `~/.ssh/known_hosts` file. The public SSH keys for a
# host may be obtained using the utility `ssh-keyscan`.
# Required.
known-hosts: ${{ secrets.KNOWN_HOSTS }}
```
You can use run this action multiple times to install more than one key as long as you use different key names.

## License

The scripts and documentation in this project are released under the [MIT License](LICENSE).