Tag Info

Hot answers tagged

3

Rather than using Match, if you wish to allow logging in from a single host, the following works for me (in sshd_config): AllowUsers *@192.168.0.4 It only allows users logging in from 192.168.0.4, using any login on the target. You can replace * with a specific login if you wish, and specify multiple patterns separated by spaces; so for example: ...


2

General troubleshooting advice for OpenSSH First of all I refer you to this short troubleshooting guide for sshd which I am using as a recipe time and time again. The plot thickens Only difference in this case, I used lxc-console to attach to the guest, logged in and stopped the running sshd and then started my instance on the default port 22. And then I ...


1

On Solaris 11 you can use: vi /etc/ssh/sshd_config PermitEmptyPasswords yes Reload sshd Add a new user useradd -m -d /home/testuser -s /bin/bash testuser passwd -d testuser SSH using new user admin@testhost:~$ ssh testuser@localhost Last login: Tue May 19 15:02:42 2015 from localhost Oracle Corporation SunOS 5.11 11.2 December 2014 ...


1

This is an SELinux problem, caused by your home directory being in a weird location. The thing you did to disable it, didn't. SELinux isn't a service, and systemctl status selinux is just telling you that ("not-found (Reason: No such file or directory)"). You could run setenforce permissive or otherwise disable SELinux, but this kind of like taking the ...


1

Did you restart the ssh service? Are two consecutive SSH logins (within a minute or two) both slow? Perform ssh -vvv user@host from the client to see where it waits. If that does not help, you might stop the SSH service (if you have other ways to access the host) and start SSH in the foreground with debugging on: sshd -Dd. Then try to make a SSH connection ...



Only top voted, non community-wiki answers of a minimum length are eligible