Eclipse Remote Environment Setup

Step 1: Generate RSA Keys #

MAC #

Note: Skip to Step 5 (copy public key) if you have RSA keys generated in your .ssh folder

  1. Open Terminal and type the following command: ssh-keygen -t rsa -m PEM
  2. Press Enter to accept the default file location and name
  3. When prompted, enter a passphrase for the key (optional)
  4. Your public and private keys will be generated and saved in the specified directory
  5. To copy your public key, type the following command: pbcopy < ~/.ssh/id_rsa.pub
  6. Now go to https://console.devzero.io/settings/ssh-public-keys
  7. Click on “Add SSH Key” and paste your key there
  8. If you want to add this key to an existing Devbox:
    1. Go to the DevZero console
    2. Open your preferred environment in the browser
    3. Open ~/.ssh/authorized_keys in editing mode
    4. Add your newly generated public key in the file

Windows #

Note: Skip to Step 7 (copy public key) if you have RSA keys generated in your .ssh folder

  1. Open Command Prompt
  2. Type ssh-keygen -t rsa -m PEM and press Enter
  3. You'll be prompted to enter a file to save the key in. Press Enter to accept the default location (usually C:\Users\your-username\.ssh\id_rsa)
  4. You'll be prompted to enter a passphrase. This is optional, but recommended. If you choose to set a passphrase, make sure to remember it or save it somewhere secure.
  5. Press Enter to confirm the passphrase (or leave it blank if you didn't set one)
  6. Your RSA keys will be generated and saved to the specified location
  7. To copy your public key:
    1. Open the file using a text editor and copy it, or
    2. Enter this command in the command prompt: clip < C:\Users\stutibiyani\.ssh\id_rsa.pub
  8. Now go to https://console.devzero.io/settings/ssh-public-keys
  9. Click on “Add SSH Key” and paste your key there
  10. If you want to add this key to an existing Devbox:
    1. Go to the DevZero console
    2. Open your preferred environment in the browser
    3. Open ~/.ssh/authorized_keys in editing mode
    4. Add your newly generated public key in the file

Step 2: Install the Remote System Explorer plugin #

Next, you'll need to install the Remote System Explorer plugin for Eclipse. This plugin will allow you to connect to your Devbox via SSH.

To install the plugin, follow these steps:

  1. Open Eclipse
  2. Click on Help > Eclipse Marketplace
  3. In the search bar, type "Remote System Explorer"
  4. Click on the "Go" button
  5. Find the Remote System Explorer plugin and click "Install"
  6. Follow the installation prompts

Step 3: Create a new SSH connection #

Once you have the plugin installed, you can create a new SSH connection to your Devbox. To do this, follow these steps:

  1. Click on Window > Perspective > Open Perspective > Other > Remote System Explorer
  2. In the Remote System Explorer panel, right-click and select "New > Connection"
  3. In the Connection Type dropdown, select "SSH Only"
  4. Enter domain name of your Devbox
  5. Make sure your private key is added
    1. Open configure proxy settings
    2. Search for “SSH2”
    3. Verify if your private key is added
    4. Click “Apply and Close”
  6. Click "Finish"

Step 4: Connect to your VM #

Now that you have a connection set up, you can connect to your Devbox. To do this, follow these steps:

  1. In the Remote System Explorer panel, expand the connection you just created
  2. Find the folder you want to work with and double-click on it
  3. Eclipse will prompt you to enter your userid and password(optional - if added in Step 1)
  4. Once you've entered the required details, you'll be connected to your Devbox

That's it! You're now set up to work with your Devbox in Eclipse. Happy coding!

PreviousVisual Studio Code Remote Extensions
NextHow can I use Google Cloud Artifact registry?