You are on page 1of 9

5/5/2017 How to Connect to a Remote Linux Server ­ ENS

Engineering Network Services - CSU


   
How To Connect To A Remote Linux
Server
Connect with X2Go (recommended) <URL: #x2go>
Connect with Remote Desktop <URL: #rdp>
Connect with SSH <URL: #ssh>
Connect with X­forwarding <URL: #xfwd>

Some things to know first: 

You must first connect to the Engineering network <URL: connect.html> before you are able to connect to
these servers.
You will always log in using your Engineering user name and password.
You may need to use the computer's full name machine_name.engr.colostate.edu instead of just
machine_name to connect.
See what Linux servers and software applications <URL: ../../info/researchcomputing/linuxcompute.html> are
available.

Connect with X2Go (recommended)


Download The Client
Windows
If you are on a machine in the labs this should already be installed. If you are on a CSU computer and need
X2Go installed please contact ENS <URL: http://www.engr.colostate.edu/ens/info/contactens/> and we can
install it for you. Otherwise, please follow the instructions below.

Download the latest version of X2Go. You can grab it here <URL:
http://code.x2go.org/releases/X2GoClient_latest_mswin32­setup.exe> and install.
Important! When installing X2Go make sure to install all fonts available. This is vital for Virtuoso to work
correctly. 

https://www.engr.colostate.edu/ens/how/connect/serverlogin­linux.html#ssh 1/9
5/5/2017 How to Connect to a Remote Linux Server ­ ENS

Mac
Download and install the latest version of X2Go.
For OSX 10.9 and higher download here <URL:
http://code.x2go.org/releases/X2GoClient_latest_macosx_10_9.dmg>
For OSX 10.6 ­ 10.8 download here <URL:
http://code.x2go.org/releases/X2GoClient_latest_macosx.dmg>

Download and install XQuartz. You can find the latest version on their website here <URL:
https://www.xquartz.org/>. After installation you may be asked to log off and back in one time to start it
correctly.
To set up copy/paste to work with the command key instead of control open a terminal and execute this
command:  
echo "*VT100.translations: #override Meta V: insert‐selection(PRIMARY, CUT_BUFFER0)
\n" > ~/.Xdefaults

Linux
Use your package manager to install "x2goclient". e.g. For Ubuntu/Debian open a terminal and type sudo
apt‐get install x2goclient

Setting Up Your Connection


Open X2Go
From the title menu "Session" choose "New Session"
Fill Out
"Host" Enter in the name of one of the linux servers. See here <URL:
http://www.engr.colostate.edu/ens/info/researchcomputing/linuxcompute.html> for a list of servers.
Important! Append ".engr.colostate.edu" to use the full computer name to prevent problems. e.g.
linux5.engr.colostate.edu instead of linux5.
"Login" This is your engineering username
Important!"Session Type" For best results use "Single Application", otherwise choose "Gnome" if a full
desktop is required. Do not use the default "KDE"
Important!"Command" Set to "Terminal" (if you have chosen "Single Application" above).

https://www.engr.colostate.edu/ens/how/connect/serverlogin­linux.html#ssh 2/9
5/5/2017 How to Connect to a Remote Linux Server ­ ENS

hit OK.

Using X2Go
Connecting
Connect to your session by clicking on the white square to bring up the login prompt. Enter your engineering
password and click "Ok". If needed, accept the key prompt.

https://www.engr.colostate.edu/ens/how/connect/serverlogin­linux.html#ssh 3/9
5/5/2017 How to Connect to a Remote Linux Server ­ ENS

Working with terminal


To run common programs, such as Matlab, Fluent, etc., please see here <URL:
http://www.engr.colostate.edu/ens/info/researchcomputing/introToLinuxServers.html#CommonPrograms> for
instructions.

Otherwise you can use the terminal just like you would using a full desktop. You can open graphical
applications and they will open in a new window.

If you need extra terminals go to "File"­>"New Window" or "Open Terminal"

https://www.engr.colostate.edu/ens/how/connect/serverlogin­linux.html#ssh 4/9
5/5/2017 How to Connect to a Remote Linux Server ­ ENS

Disconnecting and Suspending


To End Your Session:

Close all windows

or

Go to your X2Go Client and press the terminate session button (Small Circle highlighted below. On the
right.)

To Disconnect/Suspend/Pause Your Session:

Go to your X2Go Client and press the Disconnect/Pause session button (Two vertical lines highlighted
below. Middle of the three buttons.)
To reconnect to that session just log back in. All your windows/processes should be how you left them.

https://www.engr.colostate.edu/ens/how/connect/serverlogin­linux.html#ssh 5/9
5/5/2017 How to Connect to a Remote Linux Server ­ ENS

Connect with Remote Desktop


From a Thin Client or Lab PC
The Remote Desktop Connection app is installed on the ENS Windows computers in the labs, including the
Windows Desktop on the thin clients. Please note that currently only versions 3.5.0­7 or 3.5.0­9 work with
our linux servers.
There is no need to connect to the Engineering Labs or Mobile Desktop first; Remote Desktop is available
directly from the Start Menu of the Wyse Client.

1. Open Remote Desktop Connection from the Start Menu. (Tip: Click the Windows button and type 'remote'.
When you see the program name, click on it.)
2. The Remote Desktop Connection window will open.
3. For "Computer", type the name or alias of one of the Linux servers <URL:
../../info/researchcomputing/linuxcompute.html>.
4. If a dialog box appears asking about the authenticity of the host, answer Yes.
5. The Linux "xrdp" logon screen will open. Enter your Engineering login name and password, then click Login.
6. If a window asking for the root password appears, you may close it or click "cancel".
7. You will see the desktop of the Linux server. Perform your work on the Linux server as necessary.
8. When you are done, you may Disconnect or Log Off: 
Disconnect: Just like the Windows Desktop on the thin clients, you may disconnect from your desktop
session but keep the programs running. Use this is you want to return later to finish your work. To
disconnect, click the 'x' in the upper right­hand corner of the Remote Desktop Connection bar.
Log Off: When you are completely finished, you should log off. To log off, click your name in the upper
right­hand corner of the screen and select "Quit..."

From another computer on the CSU network


Windows
Follow the same instructions in the "From a Thin Client or Lab PC" section, above.

Mac OS
Download and install the Microsoft Remote Desktop Connection Client for Mac <URL:
http://www.microsoft.com/en­us/download/details.aspx?id=18140>.

https://www.engr.colostate.edu/ens/how/connect/serverlogin­linux.html#ssh 6/9
5/5/2017 How to Connect to a Remote Linux Server ­ ENS

Open Remote Desktop Connection from your dock or under the Applications menu on the Finder.
Continue with the instructions in the "From a Thin Client or Lab PC" section, above.

Linux
Install a remote desktop package such as rdesktop <URL: http://www.rdesktop.org/>.
Continue with the instructions in the "From a Thin Client or Lab PC" section, above.

Commodore 64
Obtain a Hyperterminal emulator such as HyperTerminal Alternatives <URL:
http://helpdeskgeek.com/windows­7/windows­7­hyperterminal/>.
Obtain a IDE64­DUART serial card and install it in your Commodore 64.
Modify the IDE64­DUART to set up an interrupt that scans an incoming port, and send the result into a
keyboard buffer.  
Note: Be sure the input is bi­directional.
You will likely want to map CTRL­C to RunStop.
If a BRK is executed locally, you may wish to respond by changing the BRK vector to preserver the
vector table.

You may need to obtain a BBS Server program to provide bridging between the Commodore and the
modern Internet. This program has modem and RS232 options.
Use the Hyperterminal emulator to connect to the appropriate IP address. 
If WinSock does not see the connection, you may need to implement a 5 minute timeout.

From your personal computer


1. Use OpenVPN <URL: vpn.html> to connect to the Engineering network.
2. Continue with the instructions in "From another computer on the CSU network", above.

Connect with SSH (command-line only)


From another ENS server
OpenSSH <URL: http://www.openssh.com> is installed by default on the ENS Linux and Solaris systems.
Open a terminal window and type:
ssh machine_name
Log in with your Engineering user name and password.

From Windows
Download and install PuTTY <URL: http://www.chiark.greenend.org.uk/~sgtatham/putty>. NOTE: PuTTY is
installed on the Windows computers in the ENS labs.
Open PuTTY from the Start Menu.
In the box labled "Host Name (or IP address)", type the host name of the machine you want and click
"Open" to connect. 
View screenshot <URL: images/putty.png>
Log in with your Engineering user name and password.

From Linux
Download and install OpenSSH <URL: http://www.openssh.com>, if it is not already installed on your
system.
Open a terminal window and type:
ssh machine_name.engr.colostate.edu
Log in with your Engineering user name and password.

From Mac OS X
OS X comes with SSH preinstalled. See your system manuals for configuration directions.

https://www.engr.colostate.edu/ens/how/connect/serverlogin­linux.html#ssh 7/9
5/5/2017 How to Connect to a Remote Linux Server ­ ENS

Run /Applications/Utilities/Terminal to start xterm. This should bring up an xterm window.
At the prompt in the xterm, connect to a computer server by typing:
ssh username@machine_name.engr.colostate.edu
Log in with your Engineering password.

Connect with X-forwarding


"X" is a window system (often referred to as the X Window System), which is used on many Linux machines.
Under this system, it is possible to easily run programs remotely and make them appear as if they were run on the
local machine.
Windows (method 1)
Download and install Xming <URL: http://sourceforge.net/project/showfiles.php?
group_id=156984&package_id=175377&release_id=551302>
Download and install PuTTY <URL: http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html>
Start PuTTY.
Under "Connection," expand SSH and click on X11. Check "Enable X11 forwarding." 
View Screenshot <URL: images/putty­x11.png>
Go to the section Session at the top left and under saved sessions, click on "Default Settings" and click
save. This will save the setting for next time.
Start Xming (this will put a "X" icon in the taskbar), use Putty to ssh into the server that you would like.
Log in with your Engineering user name and password.
Once you are connected, check that applications will open on your computer by typing xclock. This should
display a small analog clock.
View Screenshot <URL: images/xclock.png>
Note: You do not need to have Xming running before you start PuTTY. You can start PuTTY and then start
Xming.

Windows (method 2)
Download and Install cygwin <URL: http://cygwin.com>. Here are some instructions <URL:
http://x.cygwin.com/docs/ug/setup­cygwin­x­installing.html>.
Double­click on the cygwin icon (this opens up a terminal window, where you have a more Unix­like
command­line environment within Windows)
Type startxwin.bat (this will open up another terminal window with all the X display information already
configured by cygwin)
In this new terminal window, type 
ssh ‐Y username@machine_name.engr.colostate.edu
Log in with your Engineering user name and password.
You can now run the application of your choice.

Linux or Solaris
Open up a terminal window and type:
ssh ‐XC machine_name.engr.colostate.edu
Log in with your Engineering user name and password.

Mac OS X
In order to run programs with X­forwarding on Macintosh OS X, you need SSH (which is installed by default) and
X11 for Mac OS X, which is freely available.

Download and install Xquartz or X11.
Xquartz (Mac OS 10.8): Download Xquartz <URL: http://xquartz.macosforge.org/landing/>
X11 (Mac OS 10.7 or earlier): Download X11 for Mac OS X <URL:
http://www.apple.com/support/downloads/x11formacosx.html>

Run /Applications/Utilities/X11 to start X11. This should bring up an xterm window.

https://www.engr.colostate.edu/ens/how/connect/serverlogin­linux.html#ssh 8/9
5/5/2017 How to Connect to a Remote Linux Server ­ ENS

At the prompt in the xterm window, connect to a compute server by typing: 
ssh ‐X username@machine_name.engr.colostate.edu 
or, if the ‐X gives you problems 
ssh ‐Y username@machine_name.engr.colostate.edu 
Note: The ‐X enables X­forwarding. Sometimes, you might need to use ‐Y instead, which enables trusted X­
forwarding.
Run the application you wish to use from the command prompt.

ENS <URL: /ens/>
How Do I... <URL: /ens/how/>
Connect To... <URL: /ens/how/connect/>

This document last modified Wednesday November 23, 2016

https://www.engr.colostate.edu/ens/how/connect/serverlogin­linux.html#ssh 9/9

You might also like