Working Remotely

Connecting to PCTotem machine

In order to work remotely on PCTotem, you will need to use SSH client. We will show how to set up connection using most popular Windows ssh tool - puTTY and standard Linux ssh command.

PuTTY

You can download puTTY here. Open it and prepare your configuration:

1. First, we will need to specify main connection target. In Host Name (or IP address) field put lxplus.cern.ch (you can also specify your login: login@lxplus.cern.ch)

2. We want to manage some additional services from our local machine so we have to set up port forwarding. From Category tree choose SSH and then Tunnels.

3. As an example, we will add SSH tunnel to pctotem34 machine, where our Tudas server is deployed. Let's see how it works: for example, to create forwarding for pctotem34 on port 2222, put pctotem34.cern.ch:22 in Destination field and 2222 on Source port field and click Add button.

4. You can add remaining forwarding the same way you've just added pctotem34 forwarding. After executing previous step, you should be able to see following entrie in Forwarded ports area: L2222 pctotem33.cern.ch:22

5. Now you can go back to Session category and save your configuration. To do that, put your configuration name in Saved Sessions field and click Save.

6. Click Open to create connection and log in.

7. Now we would like to log in directly to pctotem34. Keep your connection with lxplus opened and execute another puTTY instance. This time we should only fill Host Name (or IP address) field with localhost and change Port value to one you choosed when you were specifying port forwarding (in our example: 2222). Save your configuration and click Open. Now you can log in and work on pctotem34 machine.

Linux

The method is the same as in PuTTY tutorial, but on Linux you can use built-in ssh command. Assuming you want to use our configuration parameters, the command will look like this:

ssh login@lxplus.cern.ch -L2222:pctotem34.cern.ch:22

Of course, if you'd like to work on pctotem34 machine, after log in to lxplus, you should create another ssh connection:

ssh -l login -p 2222 localhost

What else to forward?

Apart from pctotem34 SSH connection, you will need additional port forwardings to get access to several other important services. Below we describe complete tunnels configuration we use during developing Tudas:

Service address Recomended local port Description
pctotem34.cern.ch:22 2222 SSH connection to Tudas server host. Remember, that you will also need access to root account on pctotem34 machine to manage Tudas server
pctotem34.cern.ch:30001 30001 Tudas server application
pctotem34.cern.ch:80 8000 Tudas HTTP web content, including communication protocol configuration. It is default form of loading Ice configuration in client-side modules.
dbsrvg3305.cern.ch:10121 10333 Access to Totem Offline Database. It is crucial if you need to manage the database or run server on your local machine
pctotem31.cern.ch:8080 8080 Totem Hudson continous integration service
pctotem30.cern.ch:8081 8081 Totem Maven repository
Edit | Attach | Watch | Print version | History: r1 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r1 - 2012-09-12 - unknown
 
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    TOTEM All webs login

This site is powered by the TWiki collaboration platform Powered by PerlCopyright &© 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
or Ideas, requests, problems regarding TWiki? use Discourse or Send feedback