Auckland's Nectar operational staff may ask you to configure an SSH key on your Nectar Linux Virtual Machine (VM). There may be multiple ways for you to do this, and what is easiest depends on how you launched your VM and how you use it. That is, whether you launched your instance as
- A "plain" virtual machine, as described here, and you typically log with an SSH client program, or
- An application like R-Studio or Jupyter notebook from the Nectar application catalog, and you connect to it through a browser
How do I add the configuration via SSH session?
Please log in using the default user account, as usual. Then, at the command prompt, issue the following command (one line, but might be spread over multiple lines in your browser window) to configure the public key:
echo "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAICHODQ9IQyUDa7Dm3k9M2I5KU0Qu++hIUqVo+EapIZ2Z aklops@nectar.auckland.ac.nz" >> ~/.ssh/authorized_keys |
How do I add the configuration on an RStudio Application?
In this case, there are multiple ways to configure the SSH key, but the following is perhaps the easiest:
- Load the URL of your R-Studio VM into a browser window
- On the start page, choose R-Studio:
- On the login page, type the username and password you chose when you launched this RStudio application (replace the values you see in this screenshot with your values):
- In the R-Studio development environment, click the Terminal tab
- Copy and paste the following command (one line, but might be spread over multiple lines in your browser window) into the terminal window and hit <enter>:
echo "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAICHODQ9IQyUDa7Dm3k9M2I5KU0Qu++hIUqVo+EapIZ2Z aklops@nectar.auckland.ac.nz" >> ~/.ssh/authorized_keys |
- Let us know the username for this instance. This is the username you use when you log in to the instance. In the above screenshot it would be mfel395.
How do I add the configuration on an Jupyter Notebook Application?
Again, there are multiple ways to configure the SSH key, but the following is perhaps the easiest:
- Load the URL of your Jupyter Notebook VM into a browser window
- Log in using the password you specified when you launched this Jupyter Notebook application:
- Open a Terminal:
- Copy and paste the following command (one line, but might be spread over multiple lines in your browser window) into the terminal window and hit <enter>:
echo "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAICHODQ9IQyUDa7Dm3k9M2I5KU0Qu++hIUqVo+EapIZ2Z aklops@nectar.auckland.ac.nz" >> ~/.ssh/authorized_keys |
- Let us know the username for this instance. You can find out the username by typing the command whoami, followed by the return key, in the terminal. Alternatively, you can find the username in the command prompt in the terminal. In the above screenshot it would be mfel395.
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article