Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Quick Instances SSH #8

Open
rNLKJA opened this issue Apr 28, 2023 · 1 comment
Open

Quick Instances SSH #8

rNLKJA opened this issue Apr 28, 2023 · 1 comment
Labels
documentation Improvements or additions to documentation SSH wontfix This will not be worked on

Comments

@rNLKJA
Copy link
Owner

rNLKJA commented Apr 28, 2023

For now everyone should have access to all instances. Please make sure that your unimelb VPN is connected due to there is no public IP available.

For quick ssh to any instances, please setup the following ssh config, this definitely save your time from hassles like enter password, you could reference the guide below:

  1. Check ~/.ssh/config file existence
  2. Edit config file, in config file you need to include:
  • Host [alias]
  • Hostname [Instance IP Address]
  • IdentityFile [Your SSH Private Key]
  • AddKeysToAgent yes
  • User ubuntu
  1. Save the ssh
# Example code snippet
Host *
ServerAliveInterval 120 

Host ccc-backend
        Hostname 172.26.128.118
        IdentityFile ~/.ssh/mrc.key
        AddKeysToAgent yes
        User ubuntu

# this is the same as ssh -i ~/.ssh/mrc.key [email protected]

# after saving the config file, connect via the command:
ssh ccc-backend

Please make sure that your unimelb VPN is connected due to there is no public IP available.


Some issues:

  • WSL network may not consistent with windows network, reboot might work
  • VPN is compulsory
@rNLKJA rNLKJA added documentation Improvements or additions to documentation wontfix This will not be worked on SSH labels Apr 28, 2023
@rNLKJA rNLKJA pinned this issue Apr 28, 2023
Repository owner locked as resolved and limited conversation to collaborators Apr 28, 2023
@rNLKJA
Copy link
Owner Author

rNLKJA commented Apr 28, 2023

Host *
ServerAliveInterval 120

Host ccc-backend
        Hostname 172.26.128.118
        IdentityFile ~/.ssh/mrc.key
        AddKeysToAgent yes
        User ubuntu
Host ccc-database
        Hostname 172.26.135.245
        IdentityFile ~/.ssh/mrc.key
        AddKeysToAgent yes
        User ubuntu
Host ccc-frontend
        Hostname 172.26.130.83
        IdentityFile ~/.ssh/mrc.key
        AddKeysToAgent yes
        User ubuntu

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
documentation Improvements or additions to documentation SSH wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

5 participants