Commit f33ecf53 authored by Marcel Amirault's avatar Marcel Amirault

Merge branch 'justinbellucci-master-patch-60564' into 'master'

Adding resolution to common error message

See merge request gitlab-org/gitlab!77390
parents 9901fcba 9bc183ed
...@@ -376,7 +376,9 @@ Git user has default SSH configuration? ... no ...@@ -376,7 +376,9 @@ Git user has default SSH configuration? ... no
Remove the custom configuration as soon as you can. These customizations Remove the custom configuration as soon as you can. These customizations
are **explicitly not supported** and may stop working at any time. are **explicitly not supported** and may stop working at any time.
## Troubleshooting SSH connections ## Troubleshooting
### Password prompt with `git clone`
When you run `git clone`, you may be prompted for a password, like `git@gitlab.example.com's password:`. When you run `git clone`, you may be prompted for a password, like `git@gitlab.example.com's password:`.
This indicates that something is wrong with your SSH setup. This indicates that something is wrong with your SSH setup.
...@@ -386,3 +388,13 @@ This indicates that something is wrong with your SSH setup. ...@@ -386,3 +388,13 @@ This indicates that something is wrong with your SSH setup.
- Try to manually register your private SSH key by using `ssh-agent`. - Try to manually register your private SSH key by using `ssh-agent`.
- Try to debug the connection by running `ssh -Tv git@example.com`. - Try to debug the connection by running `ssh -Tv git@example.com`.
Replace `example.com` with your GitLab URL. Replace `example.com` with your GitLab URL.
### `Could not resolve hostname` error
You may receive the following error when [verifying that you can connect](#verify-that-you-can-connect):
```shell
ssh: Could not resolve hostname gitlab.example.com: nodename nor servname provided, or not known
```
If you receive this error, restart your terminal and try the command again.
...@@ -45,7 +45,7 @@ set to 50MB. The default is 1MB. ...@@ -45,7 +45,7 @@ set to 50MB. The default is 1MB.
**If pushing over SSH**, first check your SSH configuration as 'Broken pipe' **If pushing over SSH**, first check your SSH configuration as 'Broken pipe'
errors can sometimes be caused by underlying issues with SSH (such as errors can sometimes be caused by underlying issues with SSH (such as
authentication). Make sure that SSH is correctly configured by following the authentication). Make sure that SSH is correctly configured by following the
instructions in the [SSH troubleshooting](../../ssh/index.md#troubleshooting-ssh-connections) documentation. instructions in the [SSH troubleshooting](../../ssh/index.md#password-prompt-with-git-clone) documentation.
If you're a GitLab administrator with server access, you can also prevent If you're a GitLab administrator with server access, you can also prevent
session timeouts by configuring SSH `keep-alive` on the client or the server. session timeouts by configuring SSH `keep-alive` on the client or the server.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment