From d3141c3dc3780cdafcfec460fcb1d7d5cb97041b Mon Sep 17 00:00:00 2001 From: Amin Vakil Date: Thu, 3 Jul 2025 15:46:23 +0330 Subject: [PATCH] Use ed25519 in expose-gitlab-ssh-port.sh --- contrib/expose-gitlab-ssh-port.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/contrib/expose-gitlab-ssh-port.sh b/contrib/expose-gitlab-ssh-port.sh index 51f5339e..0211d27e 100644 --- a/contrib/expose-gitlab-ssh-port.sh +++ b/contrib/expose-gitlab-ssh-port.sh @@ -10,15 +10,15 @@ if ! id -u git >> /dev/null 2>&1; then fi su git -c "mkdir -p /home/git/.ssh/" -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" -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" +su git -c "if [ ! -f /home/git/.ssh/id_ed25519 ]; then ssh-keygen -t ed25519 -N \"\" -f /home/git/.ssh/id_ed25519; fi" +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" mkdir -p /home/git/gitlab-shell/bin/ rm -f /home/git/gitlab-shell/bin/gitlab-shell tee -a /home/git/gitlab-shell/bin/gitlab-shell > /dev/null <