CVS in Eclipse & Password requests [message #46436] |
Sun, 03 April 2005 23:36 |
Marco Massenzio Messages: 4 Registered: July 2009 |
Junior Member |
|
|
An annoying feature of using CVS in Eclipse is that *every time* one
refreshes, for example, the history or tries to access in any other way
the remote server, when using SSH, the underlying OpenSSH will ask for a
password - often, several times.
One way to obviate this, is to create a RSA private/public pair.
This is pretty straightforward using the facilities in Eclipse:
Window -> Preferences
+--> Team
+--> CVS
---> SSH2 Connection - Key Management
then click on "Generate RSA key" and the library tools will do their magic.
Now, you will need to upload the "public" half on the remote server
(this will have to be stored under $HOME/.ssh/authorized_keys ) whilst
the "private" part (the one to keep safe and secure at *all* times!)
will be stored on the local machine (under $HOME/.ssh/id_rsa )
The Eclipse Key Management tool is clever enough to allow you to upload
the "public" key to the remote server (using sFTP - use user@host and
then enter your login credentials when prompted) *but* not clever enough
to change the user's permission on the stored "private" key.
This is something that SSH2 strongly (and rightly IMHO) objects to, thus
ignoring the key and requesting the password (thus, fooling all the work
thus far).
If you don't believe me, simply type the following at the prompt:
user$ ssh user@host
using your remote host and credentials and see what ssh has got to say...
Don't despair!
Simply do the following (this will work on any Linux machine):
user$ cd
user$ cd .ssh/
user$ chmod go-rw id_rsa
and all CVS work will fly without ever bothering you again with a
request for password!
ONE WORD OF CAUTION...
Do I really need to say this: do not do this, unless (a) you are using a
machine to which only you have access to, (b) NEVER using 'root' account
and (c) only if you have been smart enough to set a *strong* password on
your local account (the one you are connecting from) - and, for that
matter, the remote one too!
Hope this helps, Regards
Marco.
|
|
|
Powered by
FUDForum. Page generated in 0.04594 seconds