Skip to content

Connecting To the Agile Gateways

Emmanuel Baccelli edited this page Jun 8, 2017 · 4 revisions

Configure your SSH access to the AGILE Gateways on the IoT-Lab Testbed

The AGILE Gateways are not directly accessible from the web but via a SSH proxy Agile server VM (hosted on fit-demo.saclay.inria.fr):

Your computer --<SSH>--> Agile server VM --<SSH>--> agile-pi-2/agile-pi-3

We provide a private ssh key that you need to copy locally on your computer to access the Agile server VM. Please follow these steps:

  1. Copy the key indicated on Redmine to a safe location. In the following, we assume that you put the key in ~/.ssh/id_rsa_agile.
  2. Next, limit the rights to access this key on your system:
    chmod 600 ~/.ssh/id_rsa_agile
  1. Configure your SSH client to access the VM and the PIs using SSH. Edit ~/.ssh/config with your favorite editor and add/put the following content:
    # Configure access to Agile VM
    Host srv-agile
      Hostname demo-fit.saclay.inria.fr
      Port 2221
      User agile
      IdentityFile ~/.ssh/id_rsa_agile

    # Configure access to the PIs
    Host agile-pi-*
      User pi
      ProxyCommand ssh srv-agile -W %h:%p
  1. Now you can access from your local computer to the Server VM using:
    ssh srv-agile
  1. You can also access from your local computer the Gateway PIs with:
    ssh agile-pi-2
    ssh agile-pi-3
  1. If you are not using the latest version of the SSH client, you'll be requested for a password. In this case use the password indicated on Redmine, then add your public key on the gateways if you don't want to type a password each time you connect. For this, on your local computer's terminal type:
    ssh-copy-id agile-pi-2
    ssh-copy-id agile-pi-3

You are now able to access the AGILE Gateways through:

    ssh agile-pi-2
    ssh agile-pi-3
Clone this wiki locally