JHU Logo Henry A. Rowland Department of Physics and Astronomy
PUC Lab


Remote Access and File Transfer

 

Q. How can I connect to JHUNIX or other computers from the PUC Lab?

A. There are several solutions, depending on your requirements.

Q. How can I connect to a PUC Lab computer from outside the Department?

A. If you are at a windows machine and you are within the Hopkins network, you can connect to a shared folder by mapping a network drive. Do this by opening Windows Explorer, selecting "Map Network Drive" from the tools menu, and a pop-up box will appear. Where it says "folder" enter \\nevill.pha.jhu.edu\users\yourusername. You may also try \\128.220.143.168\users\yourusername. Click if it says "Connect using a different user name" and enter your user name and password where indicated. You may need to preface your username with PUC\ as in PUC\yourusername.
From outside the campus network, use JHSecure to get through the campus firewall. Please note that if you are on RESNET, you may still require JHSecure to get through to the PUC network.

Q. How do I use the Secure Shell Client?

A. Start Secure Shell Client from the Start Menu --> Programs --> SSH Secure Shell --> Secure Shell Client. A window will pop up that looks like this:

Click "Quick Connect" and the following box should appear:

Type the remote computer's IP address in the Host Name textbox and in the User Name textbox type in your username for the computer to which you are trying to connect. Leave the port number at 22 (which is the default port for SSH), and click the connect button. You will be prompted for your password for the account on the computer to which you are trying to connect. A "Host Identification" dialog box, like

may appear; in this case, select "yes" and save the host key to your computer.

Q. How do I connect to a X Windows Host?

A. First connect to the host using Secure Shell (SSH) (see the previous answer for how)
Run XWin32 from the Start Menu: Start Menu --> Programs --> X-Win32 --> X-Win32 The connect method window shown below pops up:



Click on cancel, and the window disappears. Note that there's a "X" icon on the taskbar now:   

Now go back to the SSH window, and type the appropriate command for your shell: Note:Replace your.computer.name with the actual name of the workstation you are using (The name is written on the case) albert.pha.jhu.edu for example.

Now whenever you try to run an X program from the shell, the window will pop up on your screen. You can try to run xterm to test this.

When you're done with X-Win32, you can close it by right clicking on the taskbar icon, and clicking on close:





Q. How do I set up my personal laptop so that it connects to my home directory and the P: drive?

A. The following assumes that your laptop runs Windows XP or an equivalent.
Create a file named startup.bat using Notepad or another pure text editor.
If this file is placed in the "startup" folder, it will be executed whenever you log on to the computer. (On my laptop this location is C:\Documents and Settings\Steve\Start Menu\Programs\Startup.) If the file is placed on your desktop or elsewhere, you need to execute it (e.g. double-click on it) to make the connections.

The file should have the following two lines:

net use Z: \\128.220.143.168\users\yourusername yourpwd /user:PUC\yourusername
net use P: \\128.220.143.168\users\AdvLabShare yourpwd /user:PUC\yourusername

Here, yourusername is your PUC username, and yourpwd is the password for your account.

To make a connection to the PUC Lab Laserprinter, you can simply use the "Add Printer" wizard on your computer after executing the startup.bat file.
Or, you may add the following line to the startup.bat file, so that the printer connection will be made automatically:

rundll32.exe printui.dll,PrintUIEntry /in /n\\128.220.143.168\PUCLaser /c\\youripaddress

where youripaddress is the IP address of your own computer. By the way, each of the three lines above need to be typed as a single long line, so that startup.bat has three lines.

Example: if I'm logged onto a laptop whose IP address is 128.220.147.202, the complete batch file would look like this:

net use Z: \\128.220.143.168\users\Steve Stvpwd8 /user:PUC\Steve
net use P: \\128.220.143.168\users\AdvLabShare Stvpwd8 /user:PUC\Steve
rundll32.exe printui.dll,PrintUIEntry /in /n\\128.220.143.168\PUCLaser /c\\128.220.147.202

Notes:

  1. Stvpwd8 is not my current password!
  2. To find out your computer's IP address, type cmd in the Start-->Run box, which will give you a DOS prompt, and type ipconfig at the DOS prompt (clicking the ENTER button after each).
  3. The above procedure will only work if you are within the Hopkins firewall. If you are outside the Hopkins firewall, the JHSecure program will allow your computer access to the nework.
  4. If your IP address is in the range 128.220.233.[1-254] then you are not within the Hopkins firewall even if you are in Bloomberg. You are connected to the vBNS (wrong) wireless network. Connect to a wireless network inside Bloomberg Center that gives you an IP address in the range 128.220.[143-147].[1-254].
  5. The above assumes that cmd.com is installed correctly on your computer, which is the usual case for Windows 98/2000/XP machines.