summaryrefslogtreecommitdiff
path: root/vimwiki/Problems.md
diff options
context:
space:
mode:
authorVito Graffagnino <vito@graffagnino.xyz>2020-09-08 18:10:49 +0100
committerVito Graffagnino <vito@graffagnino.xyz>2020-09-08 18:10:49 +0100
commit3b0142cedcde39e4c2097ecd916a870a3ced5ec6 (patch)
tree2116c49a845dfc0945778f2aa3e2118d72be428b /vimwiki/Problems.md
parent8cc927e930d5b6aafe3e9862a61e81705479a1b4 (diff)
Added the relevent parts of the .config directory. Alss add ssh config
Diffstat (limited to 'vimwiki/Problems.md')
-rw-r--r--vimwiki/Problems.md42
1 files changed, 42 insertions, 0 deletions
diff --git a/vimwiki/Problems.md b/vimwiki/Problems.md
new file mode 100644
index 0000000..b5e6451
--- /dev/null
+++ b/vimwiki/Problems.md
@@ -0,0 +1,42 @@
+
+##1. Problems connecting via ssh.##
+
+If an attempt at ssh to a host has been denied, (although previously successful),
+you may get the following error:
+
+`ssh_exchange_identification: read: Connection reset by peer`
+
+This can be caused by an number of reasons. You can first try to delete the line containg the
+host from your ~/.ssh/known_host file. If this doesn't work then your ip address may be blocked
+and could be listed in the /etc/hosts.deny file.
+
+To better diagnose the situation try connecting via ssh with the verbose option (-v or -vv)
+as this may provide some clues. A message that the connection has been reset by the peer could be
+further indication that the ip address is in the host.deny file.
+Therefore check the file /etc/hosts.deny for the ip address. If the ip address is listed,
+the following steps should then be followed:
+
+ 1. Stop the DenyHosts service:
+
+ `$ systemctl stop denyhosts`
+
+ 2. Remove the ip address from the following files:
+
+ 1. `/etc/hosts.deny`
+ 2. `/var/lib/denyhosts/hosts`
+ 3. `/var/lib/denyhosts/hosts-restricted`
+ 4. `/var/lib/denyhosts/hosts-root`
+ 5. `/var/lib/denyhosts/hosts-valid`
+ 6. `/var/lib/denyhosts/users-hosts`
+
+ 3. Start the DenyHosts service:
+
+ `$ systemctl start denyhosts`
+
+
+
+###Refs:###
+
+https://stackoverflow.com/questions/9225300/denyhosts-keeps-adding-back-my-ip
+
+