COMP3000 Operating Systems W22: Connecting to SCS Openstack

From Soma-notes
Revision as of 12:06, 12 January 2022 by Lianyingzhao (talk | contribs) (Created page with "If you want to access the openstack environment during a video call (e.g., the lecture), please avoid streaming through the Carleton VPN. You can also use these alternatives t...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

If you want to access the openstack environment during a video call (e.g., the lecture), please avoid streaming through the Carleton VPN. You can also use these alternatives to avoid VPN for your convenience. The instructions assume you have created your VM instance with the VPN:

Linux

ssh -J CarletonUserName@access.scs.carleton.ca VMUserName@VMIP

If your ssh version is a bit old, you may need to add a key exchange algorithm with:

ssh -oKexAlgorithms=+diffie-hellman-group1-sha1 -J CarletonUserName@access.scs.carleton.ca VMUserName@VMIP

Linux - persistent

In your ssh config file (e.g., ~/.ssh/config. Remember to replace <***> with actual values):

Host access
HostName access.scs.carleton.ca
KexAlgorithms +diffie-hellman-group1-sha1
User <CarletonUserName>
Host 3000
HostName <VMIP>
ProxyJump access
User <VMUserName>

Then you can just ssh 3000

Windows

ssh -o ProxyCommand="C:\Windows\System32\OpenSSH\ssh.exe -W %h:%p CarletonUserName@access.scs.carleton.ca" VMUserName@VMIP

Legacy (two terminal windows needed)

ssh -L 1200:VMIP:22 CarletonUserName@access.scs.carleton.ca

[stay logged in, and in another window do the following]

ssh -p 1200 VMUserName@localhost

You can choose a port other than 1200.