To access a server with SSH, a ssh key pair (private/public key) will need to be generated on the host from which the SSH connection is established. An already existing pair can also be used.
The next step is to add the public key (NOT the private key) to the organization associated with the Bunnyshell account. The same key can be added to multiple organizations.
Note: The private key must remain on the local machine on which the key pair was generated. The private key must NOT be uploaded to the Bunnyshell account.
1. Click the organization button on the top left of the page (under the Bunnyshell logo)
2. Go to the SSH Keys tab where you see any existing keys and can also add a new one.
3. Click the Add new key button
4. Choose between public or private RSA key type, add a name, and copy the key itself in the Public/Private RSA key box. Note that the keys must be in pem format in order to be accepted.
5. Click the Create button
To access a server via SSH:
- Go to the server page and find the Access tab.
- There you can add any existing public SSH keys to the server and you can also add new users.
- Each user can be associated with one or more SSH keys that can be added by clicking on the Authorized ssh keys box.
- After the key is added, hit the Deploy changes button.
- Use the user corresponding to your SSH key and the server's public IP address for the SSH connection.
After you add your public key, please make sure your firewall settings allow for the SSH connection:
- go to the Firewall tab on your server page
- use + to add a new rule
- under Port Range add 22
- under Source select My IP (or leave CIDR block and add the public IP from which you want to establish the SSH connection followed by /32)
- give a name to the new rule
- hit Deploy changes