Tips and tricks

From OCF Help

Jump to: navigation, search

This page contains a categorized list of tips and tricks that OCF users may find useful.

SSH

If I have already SSH'ed into the OCF, why do I have to re-enter my password if I SSH to another OCF machine?

By default, all OCF machines use password authentication, and will indeed prompt you for your same OCF password if you are on an OCF machine and attempt to SSH to another OCF machine.

However, a good workaround does exist: a small program called an SSH agent can be configured to "remember" your password. With a properly configured SSH agent on the OCF, you don't have to enter your password every time you SSH to another OCF machine.

Setting up an SSH agent is usually a complicated and time-consuming task, but, luckily, the OCF Staff have already written a script to automatically configure the SSH agent for you. Once you have SSH'ed into the OCF, issue the command

~tdhock/scripts/ssh-agent-configure

Follow the instructions and you should have an SSH agent up and running in no time. The result will be that you can SSH around the OCF without the hassle of having to enter your password each time.

To find out more about SSH agents, try

man ssh-agent