Link to home
Start Free TrialLog in
Avatar of BoxunloX
BoxunloX

asked on

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?
SOLUTION
Avatar of gelonida
gelonida
Flag of France image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of BoxunloX
BoxunloX

ASKER

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....
Thanks guys. I didn't mean to waste your time on something simple.....I apologize.
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