LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (http://www.linuxquestions.org/questions/linux-general-1/)
-   -   ssh-agent, ssh-add and ssh-keygen AND CVS (http://www.linuxquestions.org/questions/linux-general-1/ssh-agent-ssh-add-and-ssh-keygen-and-cvs-94985/)

raylpc 09-20-2003 08:19 PM

ssh-agent, ssh-add and ssh-keygen AND CVS
 
My school is using CVS for submitting assignments this year. I searched on the web to find some good gui for CVS, and tkcvs seems pretty good (I like the function of showing the tree of versions). However, my school's CVS is using ssh for authentication, not pserver. Whenever I change directory, I have to input my password again in the terminal and the cpu usage shoots up to 100%.

The question is how I make use of the ssh-agent, ssh-keygen and ssh-add to save me from the hazzle. I don't want to enter password whenever I request data from the server. I just want to enter password once for one session.

Here is what I have tried after reading the man page:
Code:

ssh-agent $SHELL
Code:

ssh-keygen -t rsa
Code:

ssh-add
But it didn't work. What did I do wrong?

Thanks

raylpc 09-21-2003 03:09 PM

Please help...
One more piece of information, I'm using tkcvs.

speedstar 11-19-2008 02:50 AM

for using ssh-keygen
 
ssh-keygen -t rsa

It will generate private and public key

# ssh-keygen
Generating public/private rsa key pair.
Enter file in which to save the key (//.ssh/id_rsa):
Your identification has been saved in //.ssh/id_rsa.
Your public key has been saved in //.ssh/id_rsa.pub.
The key fingerprint is:
d2:14:16:28:87:71:7f:9e:7a:8b:02:a6:35:cf:bf:ce root@<machine>

ftp this file "//.ssh/id_rsa.pub" i.e., id_rsa.pub file to the server at the same location of server and rename it to "authorized_key"

try to login ,it will work(if it doesn't, then check the owner of authorised_key file is the same who generated it.

You are using public key authentication to login the server.


All times are GMT -5. The time now is 07:07 PM.