Difference between revisions of "Connecting from outside - old"
m (Connecting from outside2 moved to Connecting from outside) |
(→Graphical (X) connection) |
||
Line 23: | Line 23: | ||
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. | 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 alrady have an X server running. Just do '''<code>ssh - | + | * If you're using Linux then you probably alrady have an X server running. Just do '''<code>ssh -XC USERNAME%HOSTNAME@gw.cs.huji.ac.il</code>''' to obtain a shell on the CSE host. |
* On Windows, you need to install and run an X server such as Cygwin. | * On Windows, you need to install and run an X server such as Cygwin. |
Revision as of 16:13, 31 October 2006
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 inferno or pita.
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 pita, use the following command: ssh amnon%pita@gw.cs.huji.ac.il
You will be prompted for your OTP password, and then for your regular password.
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:
- Telnet to gw.cs.huji.ac.il.
- Login using your CSE username and your OTP password.
- Connect to the desired CSE host by doing:
c HOSTNAME
. For example:c pita
- 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 alrady 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 Windows, you need to install and run an X server such as Cygwin.
- Start Cygwin
- In the Cygwin shell, enter
export DISPLAY=:0
- Give command
ssh -X USERNAME%HOSTNAME@gw.cs.huji.ac.il
- Open another Cygwin shell and enter
X -multiwindow
After following the above steps you can start your X application on the CSE host.