Apr
16
2009
Cansin
As you all know, we’re having a problem with Netbeans while using svn+ssh. When we try to our first commit/update at Netbeans, the username is fetched from the localhost (i.e. cnsnyldz in my case) rather being fetched from what we entered at Netbeans IDE (i.e. e1449271).
Before now, we are obliged to do a dummy checkout first, then we could use svn. I have come up with a solution for this situation. I have deleted the project from my NetbeansProjects folder and re-checkout it from svn, using the below code:
svn+ssh://username@username@external.ceng.metu.edu.tr/home/svn/490.2009/praeda
Using two usernames consequently has solved my problem. I hope it also helps you.
1 comment | tags: cansin, netbeans, ssh, svn
Apr
7
2009
Murat
If you are using svn+ssh protocol for version control system, you can be bored to enter your password each time you want to update, commit etc. You can use SSH Private Key Authentication method to get rid of this. Follow these steps:
In your client computer, create a key-pair and upload it to the server:
ssh-keygen -t dsa -f ~/.ssh/id_dsa -P ”
scp ~/.ssh/id_dsa.pub <username>@<server>:
Connect to the server using ssh and save your public key:
ssh <user>@<server>
cat id_dsa.pub >> ~/.ssh/authorized_keys2
chmod 600 ~/.ssh/authorized_keys2
Then, add this private key file into NetBeans:
- Open Versioning->Checkout menu.
- Edit tunnel command as, “ssh -l <username> -i ~/.ssh/id_dsa”
Now, you should be able to use this repository without entering your password.
3 comments | tags: murat, netbeans, ssh, svn