I've a NetApp filer that's running exclusively CIFS. (/vol/vol0 is CIFS exported)
Account logins via ssh are possible as DOMAIN\username
, but we're having difficulty with configuring ssh public-private key pairs.
Normally we'd create an authorized_keys
file in order to allow access, but can't figure out the account mapping. (Filer login as DOMAIN\username
works, but not as just username
)
How do we go about setting this up?
The thing that you're missing is that the filer is being very literal in terms of finding an
authorized_keys
file. Specifically it looks in:/etc/sshd/username/.ssh/authorized_keys
The problem here is - you need to set
username
toDOMAIN\username
which isn't a valid windows filename. (Creating a directory called.ssh
is problematic too) You can do this from the box, usingmv
though.ssh-keygen -t rsa
\\filername\c$
from a windows host.etc/sshd/<username>/ssh
authorized_keys
id_rsa.pub
from your linux box. (Can also use PuTTY keys).mv /etc/sshd/<username>/ssh /etc/sshd/<username>/.ssh
mv /etc/sshd/<username> /etc/sshd/<DOMAIN\username>
DOMAIN~1
or similar on your Windows box, because it's not a valid filename.priv set -q advanced; ls /etc/sshd
will show you it correctly.Add to your linux box
.ssh/config
:ssh filername version
. No password should be requested.You can troubleshoot be looking in
/vol0/etc/log/auditlog
.The way I do it is:
This creates \filer\etc$\sshd for you.