Re: Enabling SSHD

From: Jim Long <freebsd-questions_at_umpquanet.com>
Date: Mon, 29 Jan 2024 19:33:02 UTC
On Mon, Jan 29, 2024 at 10:57:58AM -0500, Paul M Foster wrote: 
>
> Assuming I want to login as any user on the system, hacking pam
> shouldn't be necessary, right?

Correct.

> I've made the following changes to the stock /etc/ssh/sshd_config:
> 
> PubkeyAuthentication no
> PermitRootLogin yes
> PasswordAuthentication yes

Comment out the first line, and the third line.  So then you'll have only one
change to the stock file, namely:

PermitRootLogin yes

Just to ensure there aren't any mistaken assumptions, please confirm
by replying with the output of:

# grep '^[^#]' /etc/ssh/sshd_config 

You should see:

PermitRootLogin yes
AuthorizedKeysFile      .ssh/authorized_keys
Subsystem       sftp    /usr/libexec/sftp-server

and nothing else.  If that's so, then restart the sshd service:

# service sshd restart

and re-try your logins.  

You may also find clues in /var/log/auth.log on the sshd server side.

Good luck!

Jim


> 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