If any of you use centos, you'l may find that on reboots you get the ssh message, "Server refused to alocate pty". An error only to be fixed by lxadmin's dev fix.
Eventually I found the fix for command line use, which I put into the sshd service manager so it fixes it self without using lxadmin.
To apply a automatic fix, open up the file:
/etc/rc.d/init.d/sshd
Then find the start function (half way down)
It should look something like this
After the { , add these following lines:
Then the next time sshd gets started/restarted, that fix will be applied.
Eventually I found the fix for command line use, which I put into the sshd service manager so it fixes it self without using lxadmin.
To apply a automatic fix, open up the file:
/etc/rc.d/init.d/sshd
Then find the start function (half way down)
It should look something like this
Code:
start()
{
# Create keys if necessary
do_rsa1_keygen
do_rsa_keygen
do_dsa_keygen
rm /dev/null
cp -af /etc/localtime /var/empty/sshd/etc
echo -n $"Starting $prog: "
$SSHD $OPTIONS && success || failure
RETVAL=$?
[ "$RETVAL" = 0 ] && touch /var/lock/subsys/sshd
echo
}
Code:
echo Fixing dev and pty...
mknod /dev/null c 1 3
chmod 666 /dev/null
/sbin/MAKEDEV pty
/sbin/MAKEDEV tty
echo Done.
Last edited: