Remote Connection Tutorial

Remote Connection

Remote Connection Tutorial

  • Establish a connection to a VPN for all remote connections from outside COE networks
  • Important Note:
    Effective June 18, 2020, all remote connections from outside COE networks will require a VPN connection.
    ECE Faculty, Staff, Graduate Students, Postdocs, and Visitors:  Connect to the COE VPN prior to establishing an RDP or SSH remote server connection.
    1. Download Global Protect
    2. Configure Global Protect to connect to portal vpn.engr.ucdavis.edu
    3. Enter your KerberosID/kerberospassphrase
    ECE Undergradate Students:  Connect to the UC Davis Library VPN prior to establishing an RDP or SSH remote server connection.
    1. Download and install Pulse Secure Client
    2. Configure Pulse Secure to connect to vpn.library.ucdavis.edu
    3. Enter your KerberosID/kerberospassphrase
  • Connecting from Linux
  • Connecting using a terminal/command line interface
    1)  From a terminal type:
    ssh -l username hostname
    If you receive an error message that ends with Host key verification failed, and if you are connecting to a grouped machine such as snake.ece.ucdavis.edu, you will need to remove the offending ssh key.
    ssh-keygen -R snake.ece.ucdavis.edu
    If you aren’t connecting to a grouped machine, and you receive this message,
    please e-mail ece-support@ucdavis.edu
    2)  Accept the RSA key.
    3)  Login as you normally would with your ECE username and password.

    Connecting to use Graphical Interfaces
    1) From a terminal in an X-windows environment type:
    ssh -X -l username hostname
    If you receive an error message that ends with Host key verification failed, and if you are connecting to a grouped machine such as snake.ece.ucdavis.edu, you will need to remove the offending ssh key.
    ssh-keygen -R snake.ece.ucdavis.edu
    If you aren’t connecting to a grouped machine, and you receive this message, please e-mail ece-support@ucdavis.edu
    2)  Accept the RSA key.
    3)  Login as you normally would with your ECE username and password.
    4)  Run graphical applications from the terminal followed by an & (ampersand).
    hostname is the name of an ECE machine listed here: 
     

    Undergraduate Instructional Labs
    Note: The software you wish to use may not be available on a system in a different lab room than the room(s) assigned to your course.
    To connect to a grouped machine in 2107 use: snake.ece.ucdavis.edu

    Faculty
    Faculty have a hostname aliased to a linux system which they can connect to.
    To connect to the faculty machine use: fac-linux.ece.ucdavis.edu
    Note: this is not grouped. If you receive a host key mismatch when connecting, please send an e-mail to ece-support@ucdavis.edu

  • Connecting from Mac OS X
  • Connecting using a terminal/command line interface
    1) Go to Finder -> Applications -> Utilities -> Terminal and open the terminal.
    2) From the terminal type:
    ssh -l username hostname
    If you receive an error message that ends with Host key verification failed, and if you are connecting to a grouped machine such as snake.ece.ucdavis.edu, you will need to remove the offending ssh key.
    ssh-keygen -R snake.ece.ucdavis.edu
    3) Accept the RSA key.
    4) Login as you normally would with your ECE username and password.
    5) hostname is the name of an ECE machine found in 2107 Kemper Hall.
  • Connecting from Windows
  • Installing MobaXterm on Windows 10
    MobaXterm is a free SSH client and X server you can use from your personal computer to run software from ECE machines.

    To download MobaXterm, go to https://mobaxterm.mobatek.net/download.html and click on the first download link for MobaXterm v20.2 (installer):

    After the installer finishes downloading, double-click it and follow the prompts to install MobaXterm.

    Running MobaXterm
    After installation, MobaXterm will place a shortcut on your desktop. Double-click to start MobaXterm. If Windows asks you to allow MobaXterm through your firewall, let it through.
    To initiate an SSH connection, click on Session, then select SSH.

    Now you can run quartus, cscope, matlab or any other ECE software from the command prompt. The new program windows will open on your desktop.

  • Secure File Transfer on Linux
  • SCP is used to securely copy and retrieve files from a host.

    To upload a file from the local system
    scp  SourceFile username@hostname:folder/TargetFile
    To upload a directory from the local system
    scp -r SourceDir username@hostname:TargetDir
    To retrieve a file from the remote system
    scp username@hostname:folder/SourceFile TargetFile
    SFTP is used to securely connect to a host and interactively transfer files. It can also be used in the same manner and format as scp. NOTE: SFTP cannot copy directories.

    To connect to a host using sftp
    sftp hostname
    Once connected, a call to help will show you the commands available
    help
    But the basic command to retrieve a file will be
    get path/SourceFilename
    And the basic command to upload a file will be
    put path/SourceFilename

    Also refer to Host Names for ECE hosts to connect to.

  • Secure File Transfer on Mac OS X
  • Users of Mac OS X can refer to Fugu for Mac OS X for secure file transfers. Also refer to Host Names for ECE hosts to connect to.
  • Secure File Transfer on Windows
  • Downloading & Installing WinSCP

    Windows users can download and install the latest version of WinSCP in order to perform secure file transfers.

    1)  Double-click the WinSCP installer
    2) Welcome to WinSCP Setup Wizard Screen
    ♦   Click ‘Next’.
    3) License Agreement Screen
    ♦   Click ‘Next’.
    4)  Setup Type Screen
    ♦   Leave the default as ‘Typical’ installation; Click ‘Next’.
    5) Initial User Settings Screen
    ♦   Here you can choose a preferred interface for the program.
    ♦   The default, ‘Norton Commander interface’, works well; Click ‘Next’.
    6) Ready to Install Screen
    ♦   Click ‘Next’.
    7)  Completing the WinSCP Setup Wizard Screen
    ♦   Uncheck the box for ‘Launch WinSCP’; Click ‘Finish’.

    Using WinSCP

    1)  Once connected to a host, the interface lists the local directories on the left and the remote directories on the right.
    2)  File transfers to and from the host can be accomplished by simply dragging and dropping files and/or folders between the interface divider.
    3)  When you are finished with file transfers, you may exit the program as you would with any other program.

    Please refer to Host Names for ECE hosts to connect to.

  • Logging Into Snake Lab (2107 Kemper) with VNC
  • The linux workstations in 2107 Kemper can be logged into remotely through TigerVNC to remotely run graphical programs. Here is a quick guide to getting a VNC session up and running:

    1)  Download TigerVNC’s VNCViewer

    If on linux you can usually install it from the package manager for your distribution. If on OSX or Windows you can find the installers on this page:

    http://tigervnc.bphinz.com/nightly/

    2)  SSH into a snake machine and set it up for VNC

    For the purposes of this demo, I will be using queen (queen.ece.ucdavis.edu). When you set up your own VNC session you can of course use any host in the snake lab.

    After logging in through SSH, the first thing to do is run ‘setup vnc’. This will set up the graphical environment for when you log in through VNC later. If you don’t do this step, you will be greeted by a blank screen when you log in through VNC.

    Next, run vncserver. You can use the manual page (man vncserver) to see how to set the screen size and other useful settings.

    3)  Run the VNC Viewer

    From your local machine, run the vncviewer from TigerVNC, set the server and session number (the same session number displayed when you ran vncserver) like so:

    Then, click ‘options’ and go to the security tab, and set only TLS with anonymous certificates, or, if you happen to have X509 certificates, TLS with X509 certificates.

    Click ‘OK’ and then ‘Connect.’ A prompt will ask for your VNC password. If you chose TLS with anonymous certificates in the previous step, there will be a banner that says ‘insecure.’ You can safely ignore this, as it it just TigerVNC’s way of saying “X509 certificates are more secure than anonymous certificates. I would prefer you used those, but whatever.”

    You should see a graphical desktop environment through the VNC viewer at this point. When you are done with your VNC session, make sure to kill it from the server via ssh with vncserver -kill :2 (or whatever session number your vnc session was using).

    That’s it! If you have any trouble, you can always contact us at ece-support@ucdavis.edu.

  • MobaXterm
  • Please visit https://mobaxterm.mobatek.net/ for information.
  • Having Trouble Running Graphical Programs?
  • Check our software to see if there is a solution for the software you are using.