Deprecated: please see new documentation site.


Contents

X11 Forwarding and SSH

To automagically connect to the head node (xx.loni.org), one can explicitly use the -X -Y idiom:

# ssh -X -Y xx.loni.org

After the login, the following command should create an xterm window on the client side:

# xterm

Instead explicitly using -X -Y, one may create a file, ~/.ssh/config on the client side that sets these (among other) variables automatically:

ForwardX11 yes
ForwardX11Trusted yes
ForwardAgent yes

Setting Up SSH Keys Among Nodes

Step 1: Login to head node

Step 2: Generate Keys

If ~/.ssh does not exist, create it:

# mkdir ~/.ssh

Then, cd into ~/.ssh:

# cd ~/.ssh

Generate keys with ssh-keygen

# ssh-keygen -b 1024 -t rsa -f ~/.ssh/id_rsa.my_intranode_key

Note: for passwordless authentication, simply use a blank passphrase when prompted.

This generates 2 files:

  1. ~/.ssh/id_rsa.my_intranode_key
  2. ~/.ssh/id_rsa.my_intranode_key.pub

Step 3: Authorize the Public Key

This is done simply by appending the contents of the public key to the ~/.ssh/authorized_keys file.

# cat ~/.ssh/id_rsa.my_intranode_key.pub >> ~/.ssh/authorized_keys

You are done.

Test Set Up

From the head node, attempt to ssh into a compute node:

# ssh -i ~/.ssh/id_rsa.my_intranode_key _compute_node_

If access is gained without being prompted for a password, then this has been set up properly.

Powered by MediaWiki