OmniRPC User's Guide Version 1.2: http://www.omni.hpcc.jp/omnirpc/ <omnirpc@omni.hpcc.jp> | ||
---|---|---|
Prev | Next |
SSH (secure shell) is a common method for using remote machines. In this section, we explain execution of OmniRPC applications using ssh. In addition, like using Globus, create a remote executable module, register a program, and to create program are almost the same. The only different details is the description of hostfile (hosts.xml).
In this example, the environment is described below.
Client host is alice.hpcs.is.tukuba.ac.jp .
Remote host is dennis.hpcc.jp.
There is not a firewall between the remote host and client host. In other words, programs can communicate without limitation on the non special privilege port.
We assume that we can use SSH here. That is, we assume that we can access with SSH from alice.hpcs.is.tsukuba.ac.jp to dennis.hpcc.jp.
When using SSH, you should set up auto authentication with an ssh-agent. If you do not, you have to type in the password at each remote host. If you want to know more detail, see man of "ssh-agent", In this example, we outline the usage below.
Activate ssh-agent, and set the environment variable on your terminal.
% eval `ssh-agent`
Register the pass phrase with ssh-add.
% ssh-add type your pass phrase here.[passwd] Identity added: /home/foo/.ssh/id_rsa (/home/foo/.ssh/id_rsa) % ssh-add
With the above procedure, you should confirm whether auto authentication is running or not.
% ssh dennis.hpcc.jp
With the above command, you can login to remote hosts without typing the password.