I can ssh into a Linux node on the cloud with root. I've created another user, web, and I want to add my ssh keys to that user. Here's what I've tried so far (as root):
mkdir -p /home/web/.ssh
cp ~/.ssh/authorized_keys /home/web/.ssh/authorized_keys
chown web /home/web/.ssh
chgrp web /home/web/.ssh
chown -R :web /home/web/.ssh
chmod -R g+w /home/web/.ssh
find /home/web/.ssh -type d -exec chmod g+s '{}' \;
systemctl reload sshd
I'm pretty sure I'm over-setting the permissions but regardless I still can't ssh into the server as the web user. Box is Fedora 21 on Digital Ocean.
What am I missing?
http://unix.stackexchange.com/tags/ssh/info
It has troubleshooting tips for when stuff isn't working
– blented Mar 05 '15 at 22:12