SSHKeys REST Endpoints
SSHKeys
To connect to an instance using SSH, you must associate it with one or more SSH public keys. You must first generate the required SSH key pairs, by using a tool such as
ssh-keygen
, and then upload the public keys to Compute Classic.You can add, delete, update, and view SSH public keys using the HTTP requests listed below. For instructions to generate SSH key pairs, see Generating an SSH Key Pair in Using Oracle Cloud Infrastructure Compute Classic.
- Add an SSH Key
- Method: postPath:
/sshkey/
- Delete an SSH Key
- Method: deletePath:
/sshkey/{name}
- Retrieve Details of all SSH Keys in a Container
- Method: getPath:
/sshkey/{container}/
- Retrieve Details of an SSH Key
- Method: getPath:
/sshkey/{name}
- Retrieve Names of all SSH Keys and Subcontainers in a Container
- Method: getPath:
/sshkey/{container}
- Retrieve Names of Containers
- Method: getPath:
/sshkey/
- Update an SSH Key
- Method: putPath:
/sshkey/{name}