File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -10,15 +10,15 @@ if ! id -u git >> /dev/null 2>&1; then
10
10
fi
11
11
su git -c " mkdir -p /home/git/.ssh/"
12
12
13
- su git -c " if [ ! -f /home/git/.ssh/id_rsa ]; then ssh-keygen -t rsa -b 4096 - N \"\" -f /home/git/.ssh/id_rsa ; fi"
14
- su git -c " if [ -f /home/git/.ssh/id_rsa .pub ]; then mv /home/git/.ssh/id_rsa .pub /home/git/.ssh/authorized_keys_proxy; fi"
13
+ su git -c " if [ ! -f /home/git/.ssh/id_ed25519 ]; then ssh-keygen -t ed25519 - N \"\" -f /home/git/.ssh/id_ed25519 ; fi"
14
+ su git -c " if [ -f /home/git/.ssh/id_ed25519 .pub ]; then mv /home/git/.ssh/id_ed25519 .pub /home/git/.ssh/authorized_keys_proxy; fi"
15
15
16
16
mkdir -p /home/git/gitlab-shell/bin/
17
17
rm -f /home/git/gitlab-shell/bin/gitlab-shell
18
18
tee -a /home/git/gitlab-shell/bin/gitlab-shell > /dev/null << EOF
19
19
#!/bin/sh
20
20
21
- ssh -i /home/git/.ssh/id_rsa -p ${GITLAB_SSH_PORT} -o StrictHostKeyChecking=no [email protected] "SSH_ORIGINAL_COMMAND=\"\$ SSH_ORIGINAL_COMMAND\" \$ 0 \$ @"
21
+ ssh -i /home/git/.ssh/id_ed25519 -p ${GITLAB_SSH_PORT} -o StrictHostKeyChecking=no [email protected] "SSH_ORIGINAL_COMMAND=\"\$ SSH_ORIGINAL_COMMAND\" \$ 0 \$ @"
22
22
EOF
23
23
chown git:git /home/git/gitlab-shell/bin/gitlab-shell
24
24
chmod u+x /home/git/gitlab-shell/bin/gitlab-shell
You can’t perform that action at this time.
0 commit comments