Hasura CLI: hasura platform:ssh-key¶
Manage SSH keys on a cluster
Synopsis¶
List, add or remove SSH keys on a cluster. SSH keys gives you access to the cluster so that you can push code and configuration
Alias: ssh-keys, ssh-key
Examples¶
# List all SSH keys present on the cluster
$ hasura ssh-key list
# Add a new SSH key to the cluster (~/.ssh/id_rsa.pub is taken)
$ hasura ssh-key add
# Add a new SSH key to the cluster from a file called 'keyfile'
$ hasura ssh-key add -f keyfile
# Add a new SSH key to the cluster from stdin
$ cat ./keyfile | hasura ssh-key add -f -
# Remove a SSH key 'user@localhost' from a cluster
$ hasura ssh-key remove user@localhost
Options¶
-h, --help help for platform:ssh-key
Options inherited from parent commands¶
--project string hasura project directory where the commands should be executed. (default: current directory)
SEE ALSO¶
- hasura - hasura controls the hasura project
- hasura platform:ssh-key add - Add your SSH key
- hasura platform:ssh-key list - List all SSH keys
- hasura platform:ssh-key remove - Remove a SSH key
Auto generated by spf13/cobra
Was this page helpful?