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:
The following command and output tells me that I am missing something:
Can someone tell me what this means and how to fix it?
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
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
Can someone tell me what this means and how to fix it?
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
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
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
ASKER
Also, I just realized that the Offensive Security tutorial I was using was written for BT2........yeah I know....