HOWTO: ssh to matrix from Linux (Debian/Ubuntu)
Step 1: Start VPN
You have a choice to run the VPN on either your Windows/macOS host or from the Linux guest VM. Running from the Windows/macOS host is sufficient and recommended in most cases, however, for those adventurous enough to explore the more challenging alternative, you can run the VPN directly from the Linux guest.
VPN on Windows/macOS host
- Connect to Student Virtual Private Network
- From VM connect directly to matrix using
ssh
as explained in Step 2 below
Step 2: ssh to matrix
Open another terminal window (CTRL+SHIFT+t
or ALT+F2
) while the VPN
connection is active and run the following command
# replace the text <MySeneca-username> with your MySeneca username $ ssh <MySeneca-username>@matrix.senecapolytechnic.ca
You will be asked to continue connecting. Answer (type the word) yes
. When prompted for
your password enter it (NOTE: your password wont display on the screen as you type it and
remember to press ENTER when done).
Copy files from remote (matrix) to local Linux (Debian/Ubuntu)
Open another terminal window (CTRL+SHIFT+t
or ALT+F2
) while the VPN connection is active and run the
following command
# check contents of your directory before copying $ ls # copy from remote using scp replacing <MySeneca-username> with your MySeneca username $ scp -r <MySeneca-username>@matrix.senecapolytechnic.ca:~mark.fernandes/ops105/notes mf-notes # check contents of your directory after copying $ ls # change directory into mf-notes and check contents $ cd mf-notes $ ls
When prompted for your password enter it (NOTE: your password wont display on the screen as you type it and remember to press ENTER when done).
Log out and disconnect from VPN
- To logout from the ssh session press
CTRL+d
- To disconnect from the VPN click on disconnect from the Windows/macOS GlobalProtect client