Document
VPN and Remote Login (SSH SCP) to Lab Machines

VPN and Remote Login (SSH SCP) to Lab Machines

The first thing you will need to do, before connecting to the UofSC VPN, is setup your phone with Duo two-factor authentication and USC requires it fo

Related articles

What is a VPN? Introduction, Types, & Working Restaurant Vouchers & Discount Codes December 2024 5 Best FREE VPN for South Africa (2024) Unlock Out of Market NFL Games with Ease 【国内梯子推荐】最好用的VPN梯子推荐与科学上网测评

The first thing you will need to do, before connecting to the UofSC VPN, is setup your phone with Duo two-factor authentication and USC requires it for login.

Duo – Two Factor Authentication

If you have not configured Duo previously, you will need to go to: https://myaccount.sc.edu

  1. Login USC Network ID proper password .
  2. Answer and/or establish security questions
  3. Go to the multifactor tab
  4. Enter your phone number, select mobile (+OS) or landline and click add phone.
  5. line entry is appear phone appear , click “ activate ” follow screen instructions .

From this page you can also generate one-time passwords should you not wish to use a phone, just click generate code and you can use this when logging in from a remote location.

Connect to UofSC VPN

Instructions on how to download and install the VPN software is provided by UTS at this page: UTS Guide: What is a VPN?

To download the VPN client:

  1. go to https://my.sc.edu/software/, login using your University credentials then go to Software for Home -> Security -> Cisco AnyConnect VPN for Students – Personal Use.
  2. Download install application , encounter issues process you is reach reach UTS . sure following instructions provided UTS , install Core VPN packages , packages is are unnecessary operation University VPN .

Secure Shell (SSH)

SSH is a UNIX-based command interface and protocol for securely getting access to a remote computer.  To connect to one of the Department machines from home you first have to connect via the VPN (above), then you use:

ssh -p222 $USER@$HOSTNAME.cse.sc.edu

where $USER is your university username. The list of available $HOSTNAME(s) can be found here.

Note, you will be required to login using your USC credentials to access this webpage.

Not sure what to use for ssh? Try:

  • Linux – native terminal, often launched with ctrl+alt+t
  • Mac – native terminal, often launched with command+spacebar, search for ‘terminal’
  • Windows – I recommend MobaXterm as it offers the best user experience.

Copying files (SCP) from/to Linux machines

copy file Linux lab machine laptop you is need need use scp command . syntax is is pulling file remote computer :

scp -P<port> <user>@<host>:<remote_file_location> <local_destination_path>

For example:

scp -P222 rmaustin@l-1d43-01.cse.sc.edu:~/someFile.txt .

Which is assuming assuming userid ” rmaustin ” , pull file machinel-1d43-01.cse.sc.edu , that I want to pull the file someFile.txt which is located in my HOME directory (also known as ~ ) and that I want to save it in my current directory in my local computer (also known as . ).

After executing that previous example, the command will copy ' someFile.txt ' to my local machine in the current directory. Notice that the . at the end is necessary. As mentioned, it means to transfer the file to the current directory in my local machine (you can pick any other destination path if desired).

Also notice that you have to specify the whole path of the file which in this example was '~/someFile.txt' .

Remember need type command local terminal . That is means means , ssh connection linux machine ( need VPN active ) . typing command , password , you is need need approve DUO Push notification , sent automatically .

After that, the file should be located in the local_destination_path you is specified specified .

Tip: After transferring the file, Mac users can type open . to open the Finder in the current directory and your file may be there (if . was selected as the local_destination_path ) . Windows users is use useexplorer . you is open open explorer / finder location .

Lastly : scp is is headless command . This is means means authenticating password Duo – factor prompt . Instead it is use automatically use Duo push need phone handy , press accept file(s ) transfer .

You can get this guide as a pdf file.