(06/15/2009, 12:33 AM)Kouznetsov Wrote: I am not successful with the public key. I copypast my intent:The answer is RTFM (Read The Fucking Manual!).
...
D:~/BITBU>ssh-keygen -t public
unknown key type public
--------------------------
Why it does not want to geberate the public key?
What other type of key can be generated instead?
------------------------
Here an excerpt from "man ssh-keygen":
Code:
-t type
Specifies the type of key to create. The possible values are
``rsa1'' for protocol version 1 and ``rsa'' or ``dsa'' for proto-
col version 2.
Code:
ssh-keygen -t dsa
It creates:
id_dsa
id_dsa.pub
Roughly the first file contains your private key (dont give it to anyone), the second file contains your public key (give it to everyone).
The procedure from scratch
You need:
- Installed ssh
- Installed python
- Installed mercurial
- ssh public key "~/.ssh/id_dsa.pub". You can create one with "ssh-keygen -t dsa".
- bitbucket account. (You dont need an own repository.)
Then you do at bitbucket
- Upload your public ssh-key to your bitbucket account: Once logged in, go to Account and paste the contents of ~/.ssh/id_dsa.pub into the corresponding field and add key.
- Send me an e-mail: Go to Inbox
- Follow the project (to be notified about changes): be logged in, go to the project, click following.
On your local computer:
Go to some folder where you want the project folder to be created, then do
Code:
hg clone https://username@bitbucket.org/bo198214/bunch/
A normal editing cycle would be as follows (the given commands assume you are in the project folder (or subfolders of it)):
- gets the latest version from the bitbucket repository.Code:
hg pull
- Edit some files in the project folder
- this stores the new version in the repository *locally on your computer*. You can continue with the previous item, or the next step.Code:
hg commit
- this pushes your last commit to the bitbucket repository. Continue with the first step.Code:
hg push
If you create new files instead of just editing existing ones you have to do an
Code:
hg add <filename>
Quote:I have created the folderNo own repository is needed.
http://bitbucket.org/kouznetsov/cauchi-integral/
Can you access this folder?
Should I upload there the latex files, C++ codes, pics?