Problem Statement

Could not connect to Linux machine through SSH.

Error Message

While starting the service, it will look for the symlink (softlink) to the 'localtime' and if it is unable to find then will result in the following error message.

Error: Starting sshd: Missing privilege separation directory: /var/empty/sshd

Solution

We had accessed this Linux machine from console and fired following commands to fix this issue.

mkdir /var/empty/sshd/etc
cd /var/empty/sshd/etc
ln -s /etc/localtime localtime