SSH keys

Manage SSH keys with the CUDO Compute CLI tool

Reference

See cudoctl ssh-keys -h for more details.

Initialise SSH key access to virtual machines

Using initialise is an interactive way to add an SSH key to your account.

You can choose a locally found key or chose another key.

    
    $ cudoctl ssh-keys init
  Use the arrow keys to navigate:? Upload an SSH key:
 ssh-rsa SHA256:asd123 docs@cudocompute.com
    other key
Added ssh-rsa key to your account

    
  

To use another key, you can enter a path to a key or paste a key directly into the terminal.

    
    $ cudoctl ssh-keys init
 other key
Use the arrow keys to navigate:? Upload an SSH key:
 enter key file path
    enter key

    
  

Enter a key from a path

    
    $ cudoctl ssh-keys init
 other key
 enter key file path
 file path: ~/.ssh/id_rsa.pub
Added ssh-rsa key to your account

    
  

or paste a key directly into the terminal.

    
    $ cudoctl ssh-keys init
 other key
 enter key
 key: SHA256:asd123 docs@cudocompute.com
Added ssh-rsa key to your account

    
  

Add an SSH key

    
    $ cudoctl ssh-keys add -file path/to/key.pub

    
  

List SSH keys

    
    $ cudoctl ssh-keys add list
pageNumber: 1
pageSize: 10
sshKeys:
    - comment: docs@cudocompute.com
      createTime: "2022-11-04T12:08:16.822678Z"
      fingerprint: SHA256:asd123
      id: r8th1g7d1vc2
      publicKey: ssh-rsa asd123... docs@cudocompute.com
      type: ssh-rsa
    ...
totalCount: 1

    
  

Delete an SSH key

    
    $ cudoctl ssh-keys delete r8th1g7d1vc2