This page covers remotely accessing EECS Linux machines using SSH. SSH enables you to get a secure shell on a Linux machine. If you are running Linux with X Windows System (most distros are), MacOS with XQuartz installed, or a Windows application with X Forwarding (such as MobaXterm), you can also use X Forwarding to forward application windows to your computer. Please also read EECS Linux Systems And Duo Authentication.
Windows 10 (versions 1803 and up) and Windows 11 come with OpenSSH pre-installed, found at C:\Windows\System32\OpenSSH\ssh.exe
. Using this tool, the instructions for connecting via SSH should be the same as with Linux or MacOS. However, since Windows historically has not featured a built-in SSH client, some alternatives exist.
ssh
command like on a Linux or Mac system.
If you wish to use X11-Forwarding, you will need to install an X11 server such as VcXsrv. Once you have an X11 server running, you will need to add -X -Y
to your ssh
command line to enable X11-forwarding. Please note that X11-Forwarding generally only works well over a local-area network and when accessing EECS systems from off-campus, you may want to use VNC.
MobaXTerm is a commercial terminal and X11 server product for Windows.
comXXXX.eecs.utk.edu
, hydraXX.eecs.utk.edu
). Be sure to specify the entire host name including the eecs.utk.edu
extension.The SSH session should now open and prompt for a password. Log in with your Netid password, and you should get a shell prompt and a file browser on the left. The session should be automatically saved on the left side of the screen next time you open MobaXterm. MobaXterm automatically has X11 forwarding enabled, so you should be able to run GUI applications as well.
Putty is a free and open-source terminal program with SSH support for Windows.
comXXXX.eecs.utk.edu
, hydraXX.eecs.utk.edu
) in the Host Name field
If you wish to use X11 over PuTTY, make sure you are running an X11 server such as VcXsrv. Then, before launching PuTTY, use the left sidebar and navigate to Connection→SSH→X11 and check “Enable X11 Forwarding” at the top.
MobaXTerm has a built-in SSH server which can be used for SSH X11-forwarding. This functionality should be turned on by default. You can double-check whether X11-Forwarding is enabled for your session in the “Advanced SSH settings” tab:
VcXsrv is a free and open-source X11 server for Windows. You will need to use an X11 server if you wish to use X11-Forwarding using a client without built-in X11 such as OpenSSH or Putty.
Please note that the X11 server will run as a tray icon. If you wish to close VcXsrv, check your system tray in the lower right corner and right-click on the VcXsrv/X11 logo.
By default, MobaXterm will open a file transfer window when you login via SSH.
In some cases, if you have issues with MobaXTerm's built-in file browser, you can try navigating to Settings in the top ribbon and changing 'ssh engine' to 'legacy'.
If you set up a dedicated SFTP session, the DUO two-factor authentication prompt may be somewhat confusing. After starting a dedicated SFTP session, you will be prompted for a password as expected:
If required, the system will also prompt you for DUO authentication but will omit the usual request to enter '1' for a push notification, etc.:
.
You may now do one of the following:
WinSCP is a dedicated SFTP/SCP client you can use for file transfers between EECS Linux systems and your Windows computer.
hydraXX.eecs.utk.edu
where XX is 0-30, make sure to include .eecs.utk.edu
).You should now have two file browsers to transfer files between computers.
As both Linux and MacOS have a command-line SSH by default, it should be pretty simple to use.
~> ssh netid@comXXXX.eecs.utk.edu # replace comXXXX with the computer you are connecting, such as your computer or a lab computer (e.g., hydra20, tesla22)
~> ssh -XY netid@comXXXX.eecs.utk.edu # -XY enable X forwarding
the two command-line methods for transferring files are scp, and sftp.
# From your machine to the one you are connecting to ~> scp /path/to/file netid@system.eecs.utk.edu:/path/where/you/want/to/copy # From the other machine to your machine ~> scp netid@system.eecs.utk.edu:/path/to/file /path/to/save/on/your/computer
sftp netid@system.eecs.utk.edu Connected to system.eecs.utk.edu. sftp> help Available commands: bye Quit sftp cd path Change remote directory to 'path' chgrp [-h] grp path Change group of file 'path' to 'grp' chmod [-h] mode path Change permissions of file 'path' to 'mode' chown [-h] own path Change owner of file 'path' to 'own' copy oldpath newpath Copy remote file cp oldpath newpath Copy remote file df [-hi] [path] Display statistics for current directory or filesystem containing 'path' exit Quit sftp get [-afpR] remote [local] Download file help Display this help text lcd path Change local directory to 'path' lls [ls-options [path]] Display local directory listing lmkdir path Create local directory ln [-s] oldpath newpath Link remote file (-s for symlink) lpwd Print local working directory ls [-1afhlnrSt] [path] Display remote directory listing lumask umask Set local umask to 'umask' mkdir path Create remote directory progress Toggle display of progress meter put [-afpR] local [remote] Upload file pwd Display remote working directory quit Quit sftp reget [-fpR] remote [local] Resume download file rename oldpath newpath Rename remote file reput [-fpR] local [remote] Resume upload file rm path Delete remote file rmdir path Remove remote directory symlink oldpath newpath Symlink remote file version Show SFTP version !command Execute 'command' in local shell ! Escape to local shell ? Synonym for help
In the above examples replace “system.eecs.utk.edu” with the appropriate host name, e.g. hydra5.eecs.utk.edu.
It is worth noting that, unless your computer is setup uniquely, your account on all EECS Linux machines should have the same filesystem. So you shouldn't ever have to copy files from hydra21.eecs.utk.edu to hydra0.eecs.utk.edu.
Various graphical SFTP clients are available for MacOS, including Cyberduck.