How to fix "no matching host key type found"
An SSH connection may fail with no matching host key type found when a newer client disables ssh-rsa and ssh-dss. These options configure compatibility.
16 articles on this topic
An SSH connection may fail with no matching host key type found when a newer client disables ssh-rsa and ssh-dss. These options configure compatibility.
If SSH to a Debian/Ubuntu server returns no hostkey alg, the SSH client failed the host key algorithm check while connecting. To fix it, check permissions…
If connecting to a server over SSH fails with "no hostkey alg", as in the example below: debug1: Reading configuration data /etc/ssh_config debug1: Connecting to 192.168.1.1 [192.168.1.1] port 22.
SFTP, installed with OpenSSH, does not normally log activity. To log access and file changes, configure its Subsystem settings.
Many people assume that connecting to Linux over SSH with PuTTY cannot run GUI applications such as firefox or system-config-network. With the right settings…
PuTTY is a popular program for remotely accessing Linux. SSH key authentication makes logging in more convenient for system administrators.
scp copies files between machines and can saturate links between sites. Use -l to limit bandwidth in Kbit/s.
Linux does not enable Telnet because it is insecure, using SSH instead. To install and enable Telnet, install the telnet-server package.
This article explains how to lock a user after a set number of login attempts using the pam_tally module in PAM.
Use netcat to test a connection by opening a socket on the server and connecting from a client on the network.
Use scp, sftp, and ssh with IPv6 addresses by enclosing the address in square brackets, as demonstrated with fe80::219:99ff:fe20:c251.
Sometimes you need to find a specific line in a file, such as one identified by an error log. vi/vim can easily display or hide line numbers.
On systems with many users, users who leave without logging out waste system resources. This method addresses that and also improves security…
To prevent direct root login over SSH, edit #vi /etc/ssh/sshd_config and set PermitRootLogin to no: PermitRootLogin no. Then restart SSH.
For SSH security, configure the system to log out users after 15 minutes of inactivity by editing sshd_config.
Telnet is usually disabled on Linux for security reasons. This article describes enabling direct root login through telnet.