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
to DOMAIN\username
which isn't a valid windows filename. (Creating a directory called .ssh
is problematic too) You can do this from the box, using mv
though.
- Log in to your linux box.
- Generate a public-private key pair with
ssh-keygen -t rsa
- open the 'vol0' cifs export
\\filername\c$
from a windows host.
- Create a directory
etc/sshd/<username>/ssh
- Create a file in this directory
authorized_keys
- paste into this file the contents of
id_rsa.pub
from your linux box. (Can also use PuTTY keys).
- Log into the filer via ssh (you'll still need your password)
mv /etc/sshd/<username>/ssh /etc/sshd/<username>/.ssh
mv /etc/sshd/<username> /etc/sshd/<DOMAIN\username>
- This will look like
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.
- log out
Add to your linux box .ssh/config
:
Host *
User DOMAIN\username
- Verify you can now ssh using
ssh filername version
. No password should be requested.
You can troubleshoot be looking in /vol0/etc/log/auditlog
.