This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| fuss:openssh [2019/05/03 09:08] – [Restrict Users to SFTP only Instead of SSH] office | fuss:openssh [2025/10/21 23:26] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== Remove Duplicate Keys ====== | ||
| - | |||
| - | Sometimes when '' | ||
| - | |||
| - | < | ||
| - | Warning: the ECDSA host key for ' | ||
| - | Offending key for IP in / | ||
| - | Matching host key in / | ||
| - | Are you sure you want to continue connecting (yes/no)? | ||
| - | |||
| - | </ | ||
| - | |||
| - | The offending key can be removed easily using '' | ||
| - | <code bash> | ||
| - | sed -i 30d / | ||
| - | </ | ||
| - | |||
| - | which deletes line '' | ||
| ====== Generate Public Key ====== | ====== Generate Public Key ====== | ||
| Line 270: | Line 252: | ||
| </ | </ | ||
| + | ====== Fixing Various Network Issues ====== | ||
| + | Any of the following symptoms are to be detected? | ||
| + | * SSH connections drop, | ||
| + | * issuing commands with large output over SSH makes the SSH session hang | ||
| + | |||
| + | They may all boil down to a non-uniform MTU setting across the network. This problem typically shows up with IoT devices (including the Raspberry Pi) that have a trimmed down networking stack (either wireless or low end network devices) that do not allow setting the MTU past '' | ||
| + | |||
| + | In case changing the MTU for the entire network is undesirable, | ||
| + | < | ||
| + | net.ipv4.ip_no_pmtu_disc = 1 | ||
| + | net.ipv4.tcp_mtu_probing = 2 | ||
| + | </ | ||
| + | |||
| + | are set with '' | ||
| + | |||
| + | ====== Remove Host and Key from SSH (known_hosts) ====== | ||
| + | |||
| + | {{fuss: | ||
| + | |||
| + | Or better yet: | ||
| + | <code bash> | ||
| + | sed '/ | ||
| + | </ | ||
| + | where: | ||
| + | * '' | ||
For the contact, copyright, license, warranty and privacy terms for the usage of this website please see the contact, license, privacy, copyright.