Tag Archives: ex

SSH Juniper EX series issue

So I recently experienced a switch which lost power and was not gracefully shut down.

After the switch came back up SSH stopped working. I had to console on to the switch to gain access.

Deleting SSH and re-adding it did not resolve any of the issues.

The following article HERE saved me when I discovered the following it the logs (below), researching this lead me to the article (4th line support Google)….

sshd 9299 – – fatal: Missing privilege separation directory: /var/empty

The following commands resolved the issue. Please note you will need to be logged in with root.

Start Shell
ls /var/empty
mkdir /var/empty
chown root:wheel /var/empty
chmod 555 /var/empty
ps aux sshd

If sshd is running already run ‘kill -HUP <PID of SSHD>’ without quotes where ‘PID’ is the process ID of sshd

Under shell you can do the following command to see the process and the PID of SSH.

top 

If sshd is not running

do the following command to start it under shell.

/usr/sbin/sshd

Advertisements
Tagged , ,