From 816137a9084844203bb5d285c6af75df797b8fb0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gon=C3=A7alo=20Montalv=C3=A3o=20Marques?= <9379664+gonmmarques@users.noreply.github.com> Date: Thu, 19 Sep 2024 11:30:39 +0100 Subject: [PATCH] docs: Update code block output formatting --- .../using-ssh-over-the-https-port.md | 25 ++++++++++--------- 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/content/authentication/troubleshooting-ssh/using-ssh-over-the-https-port.md b/content/authentication/troubleshooting-ssh/using-ssh-over-the-https-port.md index 646a9079d40a..bd60291d4df4 100644 --- a/content/authentication/troubleshooting-ssh/using-ssh-over-the-https-port.md +++ b/content/authentication/troubleshooting-ssh/using-ssh-over-the-https-port.md @@ -20,12 +20,13 @@ shortTitle: Use SSH over HTTPS port To test if SSH over the HTTPS port is possible, run this SSH command: -```shell +```bash $ ssh -T -p 443 git@ssh.github.com -> Hi USERNAME! You've successfully authenticated, but GitHub does not -> provide shell access. +# Hi USERNAME! You've successfully authenticated, but GitHub does not +# provide shell access. ``` + {% note %} **Note**: The hostname for port 443 is `ssh.{% data variables.product.product_url %}`, not `{% data variables.product.product_url %}`. @@ -55,10 +56,10 @@ Host {% data variables.product.product_url %} You can test that this works by connecting once more to {% data variables.location.product_location %}: -```shell +```bash $ ssh -T git@{% data variables.product.product_url %} -> Hi USERNAME! You've successfully authenticated, but GitHub does not -> provide shell access. +# Hi USERNAME! You've successfully authenticated, but GitHub does not +# provide shell access. ``` ## Updating known hosts @@ -66,12 +67,12 @@ $ ssh -T git@{% data variables.product.product_url %} The first time you interact with {% data variables.product.prodname_dotcom %} after switching to port 443, you may get a warning message that the host wasn't found in `known_hosts`, or that it was found by another name. -```shell -> The authenticity of host '[ssh.github.com]:443 ([140.82.112.36]:443)' can't be established. -> ED25519 key fingerprint is SHA256:+DiY3wvvV6TuJJhbpZisF/zLDA0zPMSvHdkr4UvCOqU. -> This host key is known by the following other names/addresses: -> ~/.ssh/known_hosts:32: github.com -> Are you sure you want to continue connecting (yes/no/[fingerprint])? +```bash +# The authenticity of host '[ssh.github.com]:443 ([140.82.112.36]:443)' can't be established. +# ED25519 key fingerprint is SHA256:+DiY3wvvV6TuJJhbpZisF/zLDA0zPMSvHdkr4UvCOqU. +# This host key is known by the following other names/addresses: +# ~/.ssh/known_hosts:32: github.com +# Are you sure you want to continue connecting (yes/no/[fingerprint])? ``` It is safe to answer "yes" to this question, assuming that the SSH fingerprint matches