Connecting from outside

This page is maintained by the CSE System Group

From CsWiki

Jump to: navigation, search

In all the following methods to connect to our servers, you must choose a host to connect to. Usually you'd choose a public server such as river. Note that the lab machines are closed to students other than the ones that log in locally.

Contents

SSH (secure shell) connection

To open a remote shell on a CSE host using SSH, you need to ssh to gw.cs.huji.ac.il as user USERNAME%HOSTNAME.

For example, if your username is amnon and you want to connect to river, use the following command: ssh amnon%river@gw.cs.huji.ac.il You will be prompted for your OTP password, and then for your regular password.

There's a good SSH client for Windows called PuTTY.

Telnet connection

In order to telnet to a CSE host, you must go through the CSE gateway. The following is the procedure to telnet to a CSE host:

  1. Telnet to gw.cs.huji.ac.il.
  2. Login using your CSE username and your OTP password.
  3. Connect to the desired CSE host by doing: c HOSTNAME. For example: c river
  4. Login to the host using your CSE username and your regular password.

Graphical (X) connection

Using this connection type you can run applications which normally use a graphical user interface (GUI), such as emacs. For this to work you need to run an X server on your computer. The applications you run on the remote CSE machines connect to the X server in order to display windows on your own computer.

  • If you're using Linux then you probably already have an X server running. Just do ssh -XC USERNAME%HOSTNAME@gw.cs.huji.ac.il to obtain a shell on the CSE host.
  • On Mac OS X, you first need to run X11 (usually under /Applications/Utilities/X11). Then, from the opened xterm, run ssh -XC USERNAME%HOSTNAME@gw.cs.huji.ac.il as in Linux.
  • On Windows, you need to install and run an X server and an ssh client. Following are instruction for setting up and connecting using Xming and PuTTY:
    1. Download and install Xming, make sure to choose full installation.
    2. Launch Xming using the newly created Xming Shortcut (not Xlaunch) Image:Xmingicon.png
    3. Download PuTTY and Launch it, It doesn’t require any installation.
    4. In the Session category, enter username%hostname@gw.cs.huji.ac.il where username is your cs login and csmachine is the server you wish to connect:
    5. Scroll down the Category column on the left, open the SSH section and select X11, Mark the Enable X11 forwarding option:
    6. At this point you can optionally go back to the Session category and save these settings as a preset.
    7. Press the Open button and enter your OTP when prompted. Next you'll be asked to enter your regular UNIX password.


After following the above steps you can start your X application on the CSE host.


See also

  • FTP on how to transfer files between your computer and the CS file system
Personal tools