From dab08112557a8fc9c30423adb804bceefaf44dcf Mon Sep 17 00:00:00 2001 From: Luke Murphy Date: Thu, 20 Jun 2019 09:58:47 +0200 Subject: [PATCH 1/3] Remove confusing same machine client/server note --- content/fundamentals/ssh.md | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/content/fundamentals/ssh.md b/content/fundamentals/ssh.md index f121e98..bf2fc35 100644 --- a/content/fundamentals/ssh.md +++ b/content/fundamentals/ssh.md @@ -33,9 +33,8 @@ approaches for day to day use and troubleshooting. ## Prerequisites The SSH ecosystem is old and venerable. It is available on all modern GNU/Linux -distributions. You can use your home server or if you don't have one yet you -can use your own personal laptop to experiment (in this case, your laptop will -play the role of both the server and client as explained later). +distributions. You will need a home server to run the SSH server and another +machine, like a laptop, to run the SSH client. The commands shown in this guide were run on a [Debian Stretch] distribution but the actual tool names should be the same on other distributions. @@ -75,7 +74,7 @@ To install the SSH server on your home server, run: $ sudo apt install -y openssh-server ``` -And from your client (laptop or otherwise), run: +And on your client, run: ```bash $ sudo apt install -y openssh-client From 00b6cfbf06e9ee5060f83fc3c9d9026d1c054b05 Mon Sep 17 00:00:00 2001 From: Luke Murphy Date: Thu, 20 Jun 2019 09:59:07 +0200 Subject: [PATCH 2/3] Mention path instead --- content/fundamentals/ssh.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content/fundamentals/ssh.md b/content/fundamentals/ssh.md index bf2fc35..9cfdbc2 100644 --- a/content/fundamentals/ssh.md +++ b/content/fundamentals/ssh.md @@ -329,7 +329,7 @@ Here are some questions to ask yourself: * Is your public key registered on the server in the `$HOME/.ssh/authorized_keys` folder? - * Are the folder permissions correct? (see this [SO thread](https://superuser.com/questions/215504/permissions-on-private-key-in-ssh-folder)) + * Are the `$HOME/.ssh` permissions correct? (see this [SO thread](https://superuser.com/questions/215504/permissions-on-private-key-in-ssh-folder)) * Is the SSH server running? (`sudo systemctl status sshd`) @@ -345,7 +345,7 @@ Here are some questions to ask yourself: * What does `ssh -vvvvv myhomebrewserver` tell you? - * Are the folder permissions correct? (see this [SO thread](https://superuser.com/questions/215504/permissions-on-private-key-in-ssh-folder)) + * Are the `$HOME/.ssh` folder permissions correct? (see this [SO thread](https://superuser.com/questions/215504/permissions-on-private-key-in-ssh-folder)) * Is the SSH server available at the port you expect? (`sudo nmap -p 22 myhomebrewserver`) From 36322aa42d15f1fe6d8a1f3a84ede3ef4e7cc4f2 Mon Sep 17 00:00:00 2001 From: Luke Murphy Date: Thu, 20 Jun 2019 09:59:14 +0200 Subject: [PATCH 3/3] Add note about /var/log/auth.log --- content/fundamentals/ssh.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/content/fundamentals/ssh.md b/content/fundamentals/ssh.md index 9cfdbc2..fb6ed23 100644 --- a/content/fundamentals/ssh.md +++ b/content/fundamentals/ssh.md @@ -339,6 +339,11 @@ Here are some questions to ask yourself: changes. After validating, always restart the SSH server after making configuration changes + * What does `sudo tail -f /var/log/auth.log` say? + * Every time an SSH client attempts to connect, a log + entry will be put into this file. Some hint as to why + it is failing should be here. + ### On the client Here are some questions to ask yourself: