Amit

Connecting NonBios to Your Cloud VM

In this tutorial, you'll learn how to connect NonBios to your cloud virtual machine.

In this tutorial, you'll learn how to connect NonBios to your cloud virtual machine. This approach works with any cloud provider, including AWS, Azure, Google Cloud, or corporate cloud environments. By running NonBios operations on your own VM, you maintain better security since your code and data stay within your infrastructure.

The connection process involves two main steps:

  1. Entering Shell Mode in NonBios
  2. Establishing an SSH connection to your cloud VM

Step 1: Understanding and Activating Shell Mode

NonBios operates within a Linux sandbox environment. While this sandbox is typically only accessible to NonBios, we can interact with it directly using Shell Mode.

To activate Shell Mode:

  1. Enter the command: shell-mode
  2. You'll see confirmation that "shell-mode is True"
  3. Try basic commands like ls to verify you're operating in the sandbox

Important Note: Shell Mode only supports non-interactive commands

Step 2: Connecting to Your VM

Since Shell Mode doesn't support interactive commands, we'll use sshpass to establish our connection. sshpass allows us to provide login credentials as command-line arguments, making the process non-interactive.

Here's how to connect:

Use the following command structure:

sshpass -p [your-password] ssh [username]@[vm-address]

For example:

sshpass -p password123 ssh amit@[your-vm-address]

1. Wait approximately 10-15 seconds for the connection to establish

2. You'll see the Ubuntu welcome screen when connected

Verifying the Connection

To confirm you're connected to the remote system:

  1. Check the local IP address using ip addr
  2. You should see your VM's IP address in the output

Switching Between Modes

  • To return control to NonBios: Type shell-mode again
  • NonBios will now execute all operations on your remote VM
  • You can verify this by creating test files and checking their location

Testing the Connection

Let's verify everything works:

  1. Exit Shell Mode
  2. Create a simple script using NonBios
  3. Return to Shell Mode
  4. Confirm the script appears on your remote VM

Remember: Always secure your VM credentials and follow your organization's security policies when establishing remote connections.

Apply for Beta

Experience the next level of AI-driven, transparent, and controllable software development.

Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.