Directions for Remote Access to the Linux Lab from a Windows Machine
Three programs are required to connect to the lab, an ssh client (PuTTY), an X Server (XMing), and an SCP client (WinSCP).
- Download and install PuTTY.
- Download and install XMing.
- Download and install WinSCP.
Now you need to configure PuTTY
- Start XMing. You'll see an icon next to the clock.
- Start PuTTY.
- In the left box, expand "SSH", then select "X11".
- Check the box that says "Enable X11 Forwarding".
- On the left, select "Session".
- In the box labeled "Host Name (or IP Address)", enter "csgateway.clarku.edu".
- Make sure the box labeled "Port" says "22".
- In the box labeled "Saved Sessions", enter "CSLab".
- Click the "Save" button.
- Select "CSLab", and click "Open".
- A dialog box may pop up. If it does, click "Yes".
- In the terminal, it will ask for your login name, and then your password. Enter them, and you'll be connected.
- When you are done with your session, type "exit" into the terminal.
- Double click on the XMing icon on the task bar (next to the clock) to close XMing.
To connect to the lab with PuTTY (after you have configured PuTTY)
- Start XMing. You'll see an icon next to the clock.
- Start PuTTY.
- Select "CSLab", and click "Open".
- In the terminal, it will ask for your login name, and then your password. Enter them, and you'll be connected.
- When you are done with your session, type "exit" into the terminal.
- Double click on the XMing icon on the task bar (next to the clock) to close XMing.
A note on Matlab:
- When running Matlab remotely, the GUI (Graphical User Interface) does not work. Start matlab with the options "nojvm" and "nosplash" to use it in command mode.
- matlab --nojvm --nosplash
To configure WinSCP:
- Start WinSCP.
- In the box labeled "Host Name:", enter "csgateway.clarku.edu".
- In the box labeled "User Name:", enter your user name.
- LEAVE PASSWORD BLANK
- Click "Save", then "OK"
- Select your saved session, then click "Login".
- A dialog box may pop up. If it does, click "Yes".
- Enter your password, then hit "OK"
- You can now drag and drop files back and forth from your computer (on the left) to the lab (on the right).
To connect WinSCP (after you have configured WinSCP)
- Start WinSCP.
- Select your saved session, then click "Login".
- A dialog box may pop up. If it does, click "Yes".
- Enter your password, then hit "OK"
- You can now drag and drop files back and forth from your computer (on the left) to the lab (on the right).
Directions for remote access from a Mac OS X
- Download a VNC client, e.g., "Chicken of the VNC," which we'll call "COTVNC"
Download COTVNC
- Follow directions to get remote port number from csgateway:
Type, vncserver -geometry 1280x1024
(for example) to get a 1280x1024 pixel window; you can, of
course, choose other resolutions (based on your local machine's
screen resolution). But if you choose none, the screen may come out
really small.
- Suppose we get port #2: In another terminal window on local machine, type:
ssh -L 5900:localhost:5902 username@csgateway.clarku.edu
where "5900" is the default LOCALHOST port number, and
"5902" is the CSGATEWAY port number you were given.
Connect using your usual lab password.
- Start VNC client, e.g., COTVNC.
- For HOSTNAME, put "localhost"
- For PASSWORD, put your lab password.
- Connect.
TIP: If the connection fails, or if you need to start a new connection at a
later time, quit your local VNC server (e.g., COTVNC as above) and start it
up again. Remember to logout from both of your VNC session and BOTH of your
terminal sessions when you are done.
If you have any questions please email the administrators of the
lab.
|