On Tuesday, October 13, 2015, Robert Mustacchi <[email protected]> wrote:

> On 10/13/15 10:05 , Hadret wrote:
> > OpenSSH settings are located under /opt/local/etc/ssh/*. Make sure you're
> > actually running OpenSSH server:
> >
> > svcs ssh
> > svcs openssh
>
> The platform now uses openssh, so just because the version said that it
> was OpenSSH doesn't mean that it comes from pkgsrc. If you're using ssh
> from pkgsrc, then the above path is the right one. If you're not, then
> please let us know and we'll need to dig more into this.
>
> Robert
>

So I installed the openssh-6.6.1nb3 package, disabled ssh, enabled openssh;
and it properly uses /opt/local/etc/ssh/sshd_config. I had to first comment
out the HostKeys, RSAAuthentication, PubkeyAuthentication, and
PasswordAuthentication for it to work properly

After your email I wanted to test the default ssh service that comes with
base64.
I disabled openssh, used pkg_delete to remove openssh. enabled ssh, and it
is back to allowing passwords (even with the /opt/local/etc/ssh/sshd_config
file still in place, the config that worked for openssh)

I checked the ssh service log

[root@ssh ~]# svcs -xv ssh
svc:/network/ssh:default (SSH server)
 State: online since Tue Oct 13 17:52:30 2015
   See: man -M /usr/share/man -s 1M sshd
   See: /var/svc/log/network-ssh:default.log

Log:
[ Oct 13 17:52:30 Enabled. ]
[ Oct 13 17:52:30 Executing start method ("/lib/svc/method/sshd start"). ]

/lib/svc/method/sshd:
(SSHDIR is set to /etc/ssh instead of /opt/local/etc/ssh)
SSHDIR=/etc/ssh

and when the /lib/svc/method/sshd is started:
/usr/lib/ssh/sshd is run

If I delete /etc/ssh/sshd_config, I can't start the ssh service:
Reason: Dependency file://localhost/etc/ssh/sshd_config is absent.
(which seems like /opt/local/etc/ssh/sshd_config is never used)


Even if I start sshd to use the config file in
/opt/local/etc/ssh/sshd_config it still allows passwords:
[root@ssh /etc/ssh]# /usr/lib/ssh/sshd -f /opt/local/etc/ssh/sshd_config

I disabled my authorized_keys file
eric@skylab:~$ ssh ssh -i .ssh/id_rsa
Password:
Password:
   __        .                   .
 _|  |_      | .-. .  . .-. :--. |-
|_    _|     ;|   ||  |(.-' |  | |
  |__|   `--'  `-' `;-| `-' '  ' `-'
                   /  ; Instance (base64 14.3.0)
                   `-'  http://wiki.joyent.com/jpc2/Base+Instance

   __        .                   .
 _|  |_      | .-. .  . .-. :--. |-
|_    _|     ;|   ||  |(.-' |  | |
  |__|   `--'  `-' `;-| `-' '  ' `-'
                   /  ; Instance (base64 14.3.0)
                   `-'  http://wiki.joyent.com/jpc2/Base+Instance

eric@ssh:~$



-------------------------------------------
smartos-discuss
Archives: https://www.listbox.com/member/archive/184463/=now
RSS Feed: https://www.listbox.com/member/archive/rss/184463/25769125-55cfbc00
Modify Your Subscription: 
https://www.listbox.com/member/?member_id=25769125&id_secret=25769125-7688e9fb
Powered by Listbox: http://www.listbox.com

Reply via email to