Re: Enabling SSHD
- Reply: Paul M Foster : "Re: Enabling SSHD"
- In reply to: Paul M Foster : "Re: Enabling SSHD"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 29 Jan 2024 18:30:52 UTC
For a permission denied error, check to see if the files have the correct permission (home dir, -/.ssh, other files as used). Also check your client to make sure it has the proper permissions. The other way to find errors is to start sshd (from the command line) with -d and/or -v flags and then try to connect using your ssh client. The sshd server will out logging as to what the errors are. It may tell you what is causing the permission denied error. Walter The greatest dangers to liberty lurk in insidious encroachment by men of zeal, well-meaning but without understanding. -- Justice Louis D. Brandeis On Mon, Jan 29, 2024 at 7:58 AM Paul M Foster <paulf@quillandmouse.com> wrote: > On Mon, Jan 29, 2024 at 02:15:19PM +0000, Matthew Seaman wrote: > > [snip] > > > how to configure it. If you want password based auth for sshd, then go > > ahead and edit /etc/ssh/sshd_config and/or /etc/pam.d entries, as > > appropriate. > > Assuming I want to login as any user on the system, hacking pam shouldn't > be necessary, right? > > I've made the following changes to the stock /etc/ssh/sshd_config: > > PubkeyAuthentication no > PermitRootLogin yes > PasswordAuthentication yes > > And of course, restarted the daemon each time I made a change. However, > when I try to ssh in in the following ways: > > ssh paulf@buckaroo > ssh root@buckaroo > ssh buckaroo > ssh 192.168.254.30 > > I get a flat "Permission denied (password,keyboard-interactive)". Not even > an attempt to ask for a password. > > Clearly something's wrong, but I have no idea what. And I have googled the > problem and visitied numerous sites to no avail. > > Paul > > -- > Paul M. Foster > Personal Blog: http://noferblatz.com > Company Site: http://quillandmouse.com > Software Projects: https://gitlab.com/paulmfoster > >