gitea迁移后需要设置ssh权限才能使用 #1

Closed
opened 2 years ago by Sirius · 0 comments
Sirius commented 2 years ago
Owner

步骤如下:

  1. 在老服务器上sudo docker-compose down, 然后sudo scp -r所有文件到新服务器上
  2. 在新服务器上sudo docker-compose up -d
  3. gitea的所有设置在容器内的/data目录, 已映射到./gitea
  4. 设置./gitea/gitea/conf/app.ini里面的domain
  5. 进容器内, 把/data/git/.ssh更改权限
    chmod 700 .ssh
    chmod 600 .ssh/*
    chown -R git .ssh/
    chgrp -R git .ssh/
    
步骤如下: 1. 在老服务器上`sudo docker-compose down`, 然后`sudo scp -r`所有文件到新服务器上 2. 在新服务器上`sudo docker-compose up -d` 3. gitea的所有设置在容器内的`/data`目录, 已映射到`./gitea` 4. 设置`./gitea/gitea/conf/app.ini`里面的domain 5. 进容器内, 把`/data/git/.ssh`更改权限 ```bash chmod 700 .ssh chmod 600 .ssh/* chown -R git .ssh/ chgrp -R git .ssh/ ```
Sirius closed this issue 2 years ago
Sirius added the
architecture
label 2 years ago
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: Sirius/note#1
Loading…
There is no content yet.