LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] rsh/ssh (or: the ongoing battle with rawhide)

[ILUG] rsh/ssh (or: the ongoing battle with rawhide)

Stephen Shirley diamond at csn.ul.ie
Mon Jun 19 09:43:12 IST 2000


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 
   eval `ssh-agent`
   ssh-add
   
RSA auth now works - try 
   ssh server
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
.bash_profile:

touch ~/.ssh/pid 
TEST=`ps \`cat ~/.ssh/pid\` | tail -1 | cut -c 28-`
 
if [ $TEST != 'ssh-agent' ]; then
        eval `ssh-agent | tee ~/.ssh/shell`
        ssh-add
        echo $SSH_AGENT_PID > ~/.ssh/pid else
        source ~/.ssh/shell
fi                                  

And bobs your uncle. If you have any q's just give me a shout.

Steve





More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


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!
RSS Version
Powered by Dell