File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -105,6 +105,7 @@ if [[ ! -f /etc/gitlab/ssh_host_rsa_key ]]; then
105
105
fi
106
106
# sshd loads the keys from /etc/gitlab, but the GitLab backend looks for keys
107
107
# from within /etc/ssh
108
+ ln -fs /etc/gitlab/ssh_host_rsa_key /etc/ssh/ssh_host_rsa_key
108
109
ln -fs /etc/gitlab/ssh_host_rsa_key.pub /etc/ssh/ssh_host_rsa_key.pub
109
110
110
111
if [[ ! -f /etc/gitlab/ssh_host_ecdsa_key ]]; then
@@ -114,6 +115,7 @@ if [[ ! -f /etc/gitlab/ssh_host_ecdsa_key ]]; then
114
115
fi
115
116
# sshd loads the keys from /etc/gitlab, but the GitLab backend looks for keys
116
117
# from within /etc/ssh
118
+ ln -fs /etc/gitlab/ssh_host_ecdsa_key /etc/ssh/ssh_host_ecdsa_key
117
119
ln -fs /etc/gitlab/ssh_host_ecdsa_key.pub /etc/ssh/ssh_host_ecdsa_key.pub
118
120
119
121
if [[ ! -f /etc/gitlab/ssh_host_ed25519_key ]]; then
@@ -123,6 +125,7 @@ if [[ ! -f /etc/gitlab/ssh_host_ed25519_key ]]; then
123
125
fi
124
126
# sshd loads the keys from /etc/gitlab, but the GitLab backend looks for keys
125
127
# from within /etc/ssh
128
+ ln -fs /etc/gitlab/ssh_host_ed25519_key /etc/ssh/ssh_host_ed25519_key
126
129
ln -fs /etc/gitlab/ssh_host_ed25519_key.pub /etc/ssh/ssh_host_ed25519_key.pub
127
130
128
131
You can’t perform that action at this time.
0 commit comments