Created
May 2, 2011 12:31
-
-
Save bsodmike/951537 to your computer and use it in GitHub Desktop.
Update ssh.conf to avoid IP-address binding issue in Ubuntu Server 10.04 LTS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ssh - OpenBSD Secure Shell server | |
# | |
# The OpenSSH server provides secure shell access to the system. | |
description "OpenSSH server" | |
# For Media Temple Linux (ve) VPS, use: | |
# start on filesystem and net-device-up IFACE=venet0:0 | |
start on filesystem and net-device-up IFACE=eth0 | |
stop on runlevel [!2345] | |
respawn | |
respawn limit 10 5 | |
umask 022 | |
# replaces SSHD_OOM_ADJUST in /etc/default/ssh | |
oom never | |
pre-start script | |
test -x /usr/sbin/sshd || { stop; exit 0; } | |
test -e /etc/ssh/sshd_not_to_be_run && { stop; exit 0; } | |
test -c /dev/null || { stop; exit 0; } | |
mkdir -p -m0755 /var/run/sshd | |
sleep 3 | |
end script | |
# if you used to set SSHD_OPTS in /etc/default/ssh, you can change the | |
# 'exec' line here instead | |
exec /usr/sbin/sshd -D |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment