| |
How To Connect To A Remote Server
Some things to know first:
- You must first connect to the Engineering network before you are able to connect to these servers.
- You will always login 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 servers and software applications are available.
Connect with NX Client (recommended)
Connect with SSH (command-line only)
From a Sun Ray or another ENS server
- OpenSSH is installed by default on the ENS Linux and Solaris systems, including Sun Rays.
- Open a terminal window and type:
ssh machine_name
- Log in with your Engineering user name and password.
From Windows
- Download and install 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.
- Log in with your Engineering user name and password.
From Linux
- Download and install OpenSSH, 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.
- 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
- Download and install PuTTY
- Start PuTTY.
- Under "Connection," expand SSH and click on X11. Check "Enable X11 forwarding."
- 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.
- 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. Here are some instructions.
- 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 (Sun Ray)
- Option #1
- Open up a terminal window and type:
ssh -XC machine_name.engr.colostate.edu
- Log in with your Engineering user name and password.
- Option #2 (from a Sun Ray only)
- At the login window click on "Options > Remote Login > Choose Host from list".
- Option #3 (from a Sun Ray or other workstation)
If already logged into a Sun Ray session, open a terminal window by clicking on the black "Terminal" icon at the bottom of the screen, and at the command prompt type the following commands:
hostname - This shows the host name of the server you are currently logged into. Remember this for step 4.
echo $DISPLAY - This shows your display number for the Sun Ray session you are on. Remember this for step 4.
ssh machine_name - Log in with your Engineering user name and password.
export DISPLAY=hostname:x
Use the hostname you got from step 1. The "x" at the end should be replaced with the display number you got from step 2 above.
For those using csh or tcsh shell, type the following:
setenv DISPLAY hostname:x
- You can now run the application of your choice.
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 from Apple.
- Download and install X11 for Mac OS X.
- Run /Applications/Utilities/X11 to start X11. This should bring up an xterm window.
- 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.
|
|