RSA auth is very easy to setup. Here are the few steps needed:
1. Run ssh-keygen on your workstation, if you haven't done it already.
Enter whatever passphrase you want (not blank - baaaad idea).
2. Copy your .ssh/identity.pub to the server using
scp ~/.ssh/identity.pub username at server:
3. Ssh to the server, and append that file to .ssh/authorized_keys
4. On your workstation run
RSA auth now works - try
You won't get asked for a passwd :-)
You won't have to enter the passphrase again until
you reboot your workstation. Now to get it all working
automatically in every shell you use, put the following in your
TEST=`ps \`cat ~/.ssh/pid\` | tail -1 | cut -c 28-`
if [ $TEST != 'ssh-agent' ]; then
eval `ssh-agent | tee ~/.ssh/shell`
echo $SSH_AGENT_PID > ~/.ssh/pid else
And bobs your uncle. If you have any q's just give me a shout.
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!