# Ssh from 1.20 to 1.21 not working

**URL:** <https://forum.gitea.com/t/ssh-from-1-20-to-1-21-not-working/8366>\
**Category:** Install/Maintain/Configure\
**Created:** [December 25, 2023, 7:48am UTC](https://forum.gitea.com/t/ssh-from-1-20-to-1-21-not-working/8366 "2023-12-25T07:48:31Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![geosone](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/geosone/32/4304_2.png) [@geosone](https://forum.gitea.com/u/geosone)\
**Post date:** [December 25, 2023, 7:48am UTC](https://forum.gitea.com/t/ssh-from-1-20-to-1-21-not-working/8366/1 "2023-12-25T07:48:31Z")

</div>

when i updated gitea to the latest version of 1.21 i got the

```auto
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

```

by switching back to 1.20

every thong works

by updating to 1.21 i had to update ini but exept of this nothing special

```auto
APP_NAME = Disconnected By Peer Projects
RUN_USER = git
RUN_MODE = prod
WORK_PATH = /var/lib/gitea

[oauth2]
JWT_SECRET = <redacted>

[security]
INTERNAL_TOKEN = <redacted>
INSTALL_LOCK = true
SECRET_KEY = <redacted>
PASSWORD_HASH_ALGO = pbkdf2

[database]
DB_TYPE = mysql
HOST = 172.16.11.229:3306
NAME = gitea
USER = gitea
PASSWD = <redacted>
SCHEMA = 
SSL_MODE = disable
CHARSET = utf8
PATH = /var/lib/gitea/data/gitea.db
LOG_SQL = false

[repository]
ROOT = /var/lib/gitea/data/gitea-repositories

[server]
SSH_ROOT_PATH = /home/git/ssh-shadow
SSH_DOMAIN = gitea.disconnected-by-peer.at
DOMAIN = gitea.disconnected-by-peer.at
HTTP_PORT = 443
HTTP_ADDR = <redacted>
ROOT_URL = https://gitea.disconnected-by-peer.at/
START_SSH_SERVER = false
DISABLE_SSH = false
SSH_PORT = 22
LFS_START_SERVER = true
LFS_JWT_SECRET = <redacted>
OFFLINE_MODE = false
PROTOCOL = https
CERT_FILE = /etc/gitea/ssl/gitea.disconnected-by-peer.at.chain
KEY_FILE = /etc/gitea/ssl/gitea.disconnected-by-peer.at.key

[lfs]
PATH = /var/lib/gitea/data/lfs

[mailer]
ENABLED = true
FROM = no-reply@disconnected-by-peer.at
PROTOCOL = sendmail
SENDMAIL_PATH = sendmail

[service]
REGISTER_EMAIL_CONFIRM = true
ENABLE_NOTIFY_MAIL = true
DISABLE_REGISTRATION = false
ALLOW_ONLY_EXTERNAL_REGISTRATION = false
ENABLE_CAPTCHA = true
REQUIRE_SIGNIN_VIEW = false
DEFAULT_KEEP_EMAIL_PRIVATE = true
DEFAULT_ALLOW_CREATE_ORGANIZATION = true
DEFAULT_ENABLE_TIMETRACKING = false
NO_REPLY_ADDRESS = noreply@disconnected-by-peer.at

[picture]
DISABLE_GRAVATAR = false
ENABLE_FEDERATED_AVATAR = true

[openid]
ENABLE_OPENID_SIGNIN = false
ENABLE_OPENID_SIGNUP = true

[session]
PROVIDER = file

# [log]
# MODE = console
# LEVEL = info
# ROOT_PATH = /var/lib/gitea/log
# ROUTER = console
[log]
MODE = file
LEVEL = info
ROOT_PATH = /var/lib/gitea/log
logger.router.MODE = file

# # hide footer details
[other]
SHOW_FOOTER_BRANDING = false
SHOW_FOOTER_VERSION = false
SHOW_FOOTER_TEMPLATE_LOAD_TIME = false

```

---

<div class="post-metadata">

**Author:** ![geosone](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/geosone/32/4304_2.png) [@geosone](https://forum.gitea.com/u/geosone)\
**Post date:** [January 23, 2024, 11:24am UTC](https://forum.gitea.com/t/ssh-from-1-20-to-1-21-not-working/8366/2 "2024-01-23T11:24:34Z")

</div>

hase someone a idea what it could be ?

---

<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:** [January 31, 2024, 12:12pm UTC](https://forum.gitea.com/t/ssh-from-1-20-to-1-21-not-working/8366/3 "2024-01-31T12:12:45Z")

</div>

Have you changed the gitea directory when upgrading?

---

<div class="post-metadata">

**Author:** ![geosone](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/geosone/32/4304_2.png) [@geosone](https://forum.gitea.com/u/geosone)\
**Post date:** [January 31, 2024, 4:22pm UTC](https://forum.gitea.com/t/ssh-from-1-20-to-1-21-not-working/8366/4 "2024-01-31T16:22:04Z")

</div>

no i have not changed anything. just replaced the bin file and restarted the serivce.
