• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 789
  • Last Modified:

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?
0
BoxunloX
Asked:
BoxunloX
  • 3
  • 2
3 Solutions
 
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
0
 
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.
0
 
PapertripCommented:
It means just what it says, that /var/run/ssh does not exist.
mkdir /var/run/ssh

Open in new window

0
NFR key for Veeam Agent for Linux

Veeam is happy to provide a free NFR license for one year.  It allows for the non‑production use and valid for five workstations and two servers. Veeam Agent for Linux is a simple backup tool for your Linux installations, both on‑premises and in the public cloud.

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

Featured Post

NFR key for Veeam Agent for Linux

Veeam is happy to provide a free NFR license for one year.  It allows for the non‑production use and valid for five workstations and two servers. Veeam Agent for Linux is a simple backup tool for your Linux installations, both on‑premises and in the public cloud.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now