SSH Server Setup

Since we are using cloud based resources we use key based SSH access to our linux servers.

We are using these ssh configurations

based loosely on these recommendations

We store all of our SSH users and their public keys in an internal secure location.

First, swith to root.

$ su - root
...

The sshd_config gets deployed to this path:

/etc/ssh/sshd_config

on each linux box.

Make sure no on has read/write on sshd_config except root.

chmod og-rw /etc/ssh/sshd_config
chmod u+rw /etc/ssh/sshd_config

And be sure to restart the sshd server for the changes to take effect.

service sshd restart