Setting up SSH Server on Ubuntu 10.4 / Back | Track5

Hello everyone,
 I am trying to set up an SSH server on a machine running Back | Track5 over Ubuntu 10.4. I have generated the keys but when using the following command to see if the server is running I get no output:

 
root@bt:~/Desktop# netstat -ant | grep 22

Open in new window


The following command and output tells me that I am missing something:

 
root@bt:~/Desktop# /usr/sbin/sshd
Missing privilege separation directory: /var/run/ssh

Open in new window


Can someone tell me what this means and how to fix it?
LVL 1
BoxunloXAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

gelonidaCommented:
I am a little surprised, that you have to generate the keys.

Normally it should be enough to install the openssh-server
ant to restart it with
sudo /etc/init.d/ssh rest
gelonidaCommented:
The error message tells you, that you configured sshd with a privilege sepration directory, but that you did not create this directory.

Normally the ssh startupscript in
/etc/init.d should take care of all this.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
PapertripCommented:
It means just what it says, that /var/run/ssh does not exist.
mkdir /var/run/ssh

Open in new window

Big Business Goals? Which KPIs Will Help You

The most successful MSPs rely on metrics – known as key performance indicators (KPIs) – for making informed decisions that help their businesses thrive, rather than just survive. This eBook provides an overview of the most important KPIs used by top MSPs.

BoxunloXAuthor Commented:
Thanks Papertrip. You know a guy I used to work with had this as his email signature: "Its the simplest things that keep admins humble" ....how true.

Also, I just realized that the Offensive Security tutorial I was using was written for BT2........yeah I know....
BoxunloXAuthor Commented:
Thanks guys. I didn't mean to waste your time on something simple.....I apologize.
gelonidaCommented:
You're welcome.

I'm still surprised, that you had to create the directory manually.

On my machine in my
/etc/init.d/ssh file I can see clearly followign lines:
check_privsep_dir() {
    # Create the PrivSep empty dir if necessary
    if [ ! -d /var/run/sshd ]; then
    mkdir /var/run/sshd
    chmod 0755 /var/run/sshd
    fi
}

If due to special setup reasons you don't have (or can't use)  /etc/init.d/ssh, then I suggest,
to create a similiar file.
You could inspire yourself by looking at Ubuntu's one


which is called in the start() section
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux Distributions

From novice to tech pro — start learning today.