Remote Access

From BNL Physics Computing

Contents


Most Physics department machines are not directly available from off-site. Authorized access can be achieved through SSH or VPN. VPN is handled centrally by ITD and is documented here. The rest of this page will describe the use of Physics departmental and group SSH gateways. Much of this applies to ITD owned SSH gateways. For more information specific to those start at this page.

Important Note

As of 30 September 2006 interactive passwords will no longer be an allowed form of authentication on any BNL SSH gateway. Instead, so called "two-factor" authentication must be used. This include SSH keys and CryptoCard. See this list for which gateway systems allow what form of authentication. CryptoCards can be requested from the Account Management Office. See above list and read on for more information on using SSH keys.


Introduction to SSH keys

SSH keys are actually key pairs: one "private" and one "public". They are a form of two factor authentication since you must possess both the private key and a passphrase to unlock it. To make use of keys the public key is first placed on the server. This tells the server that any client that can prove to be in possession of the coresponding private key may be allowed access. To prove this the server will encrypt a challenge message using the public key and send it to the client. If the client has the coresponding private key, the message is decrypted and sent back to the server and access is granted.


Using SSH

SSH Keys

The use of SSH public/private key pairs will simplify connections (once properly set up) and improve security relative to use of reuseable passwords. Note: Passwords are no longer allowed on any gateway machine at the Laboratory. All gateway machine accept SSH Keys as an authentication method.

Accessing internal machines through the gateways

There are various methods of setting up access to internal machines where the gateway machine essentially becomes transparent. These methods are in addition to the simple method of logging in to a gateway machine and then logging in to an internal machine from the gateway machine prompt,

Transferring files to and from internal machines

A number of file transfer programs have built in transparent SSH tunnels (see next topic for a discussion of SSH tunnels) so that they can be configured to automatically open connections to internal machines.

Using SSH Tunnels

An SSH tunnel is a mechanism for using an SSH connection to make your machine look like the machine at the end of the tunnel. Tunnels are used to access internal web servers (including PeopleSoft), Library services, license servers, etc. Using an SSH tunnels consists of two parts, namely, setting up the tunnel and configuring the application to use the tunnel. Since the most common use of an explicit tunnel will be to access internal BNL web servers (such as PeopleSoft or servers without conduits) from off-site or on the Corus network, this type of tunnel will be used in the following discussion. To tunnel other applications, substitute the appropriate server and port into the methods outlined below and configure your application to use the assigned port on your local machine.

Setting up a tunnel to the internal BNL HTTP Proxy

Configuring the Proxy in your web browser

Once you have configured your web browser and started your tunnel, you can type the address of any internal web server visible to the BNL HTTP proxy just as you would on-site, and you will be presented with the corresponding web page.

Semi-automatic and automatic BNL internal HTTP proxy tunnel

There are a number of ways to partially automate and even fully automate the configuration of proxies and tunnels in order to simplify to use of a web browser on a laptop. Further discussion of one such method under Windows, Mac OS and Linux is available here

Troubleshooting SSH

Advanced SSH Topics

Help with specific SSH applications

Most of these pages assume one is using OpenSSH on some Unix like OS (eg. Linux, Mac OS X). Specific information on other flavors of SSH is given in the following topics.