gitlab-sshd command not found

In this troubleshooting guide we learn how to fix gitlab-sshd command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

gitlab-sshd: command not found

or when using sudo you get the following error message

sudo: gitlab-sshd: command not found

Solutions to gitlab-sshd: command not found

How To Fix gitlab-sshd: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu gitlab-sshd is provided by gitlab-shell package.

gitlab-shell is:

GitLab Shell handles git commands for GitLab and modifies the list of authorized keys. GitLab Shell is not a Unix shell nor a replacement for Bash or Zsh.

To fix this problem, we can install more using the command below.

sudo apt-get -y install gitlab-shell

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install gitlab-shell.

sudo apt -y install gitlab-shell

Or if you have aptitude installed you can use the following command.

sudo aptitude install gitlab-shell

Summary

In this tutorial we learn how to fix gitlab-sshd command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.