# Uploading code to gitea

**URL:** https://forum.gitea.com/t/uploading-code-to-gitea/4770
**Category:** Install/Maintain/Configure
**Created:** [February 23, 2022, 9:26am UTC](https://forum.gitea.com/t/uploading-code-to-gitea/4770 "2022-02-23T09:26:36Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Indigo](https://avatars.discourse-cdn.com/v4/letter/i/dec6dc/32.png) [@Indigo](https://forum.gitea.com/u/Indigo)
#### Post date: [February 23, 2022, 9:26am UTC](https://forum.gitea.com/t/uploading-code-to-gitea/4770/1 "2022-02-23T09:26:36Z")

</div>

hello,

i am trying to upload some code to gitea but i an getting confused, every time i try to do the commands (shown bellow) it tells me to enter a password, i enter my account password but it doesnt work, is there any other passwords to use? i am new to gitea so i dont really know what i am doing.

if someone can help that would be excellent

thanks!

![commands](https://us1.discourse-cdn.com/flex020/uploads/gitea/original/2X/9/90a14a78504cbf385260317a390a3aa9505521ad.png)

---

<div class="post-metadata">

### Author: ![lunny](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/lunny/32/4701_2.png) [@lunny](https://forum.gitea.com/u/lunny)
#### Post date: [February 24, 2022, 6:28am UTC](https://forum.gitea.com/t/uploading-code-to-gitea/4770/3 "2022-02-24T06:28:16Z")

</div>

Please paste your Gitea server installation related information.

---

<div class="post-metadata">

### Author: ![Indigo](https://avatars.discourse-cdn.com/v4/letter/i/dec6dc/32.png) [@Indigo](https://forum.gitea.com/u/Indigo)
#### Post date: [February 24, 2022, 7:26am UTC](https://forum.gitea.com/t/uploading-code-to-gitea/4770/4 "2022-02-24T07:26:15Z")

</div>

what do you mean, where can i find that?

---

<div class="post-metadata">

### Author: ![realaravinth](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/realaravinth/32/2033_2.png) [@realaravinth](https://forum.gitea.com/u/realaravinth)
#### Post date: [February 24, 2022, 1:44pm UTC](https://forum.gitea.com/t/uploading-code-to-gitea/4770/5 "2022-02-24T13:44:21Z")

</div>

I’m guessing it’s asking for `git` user’s password on the server that’s running Gitea. If you have shell access to the server, kindly try that password.

If it works, then it’s not the expected behavior. The contents of `~/.ssh/authorized_keys` in `git`'s home directory should give more clues.

---

<div class="post-metadata">

### Author: ![3301](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/3301/32/6421_2.png) [@3301](https://forum.gitea.com/u/3301)
#### Post date: [November 18, 2024, 10:25pm UTC](https://forum.gitea.com/t/uploading-code-to-gitea/4770/6 "2024-11-18T22:25:10Z")

</div>

list current keys on system `ls -al ~/.ssh`

look for any of below and choose one

- _id\_rsa.pub_
- _id\_ecdsa.pub_
- _id\_ed25519.pub_

run `cat ~/.ssh/id_ed25519.pub`  
copy the output except the user@system

then goto [Sign In - Gitea: Git with a cup of tea](https://gitea.com/user/settings/keys)  
click add key  
choose a title and paste the public key you copied earler

make sure you added the remote origin as ssh

now `git push -u origin master`
