[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Strange error message from chronyd



Mario Vukelic writes:
> Bad command logon from 127.0.0.1 port 32769 (md5_ok=1 valid_ts=0)

This says that chronyc is conecting from localhost and attempting to
authenticate with an invalid password.  Does the message occur every time
your ppp connection goes up and/or down?  The scripts
/etc/ppp/ip-{up,down}.d/chrony run chronyc when ppp goes up and down to
command chronyd to go on and off line.  They use the password in
/etc/chrony/chrony.keys to do so.  The scripts should look like this:

#!/bin/sh
# This script tells chronyd that the connection is up so that it can
# contact the server.  John Hasler <jhasler@debian.org> 1 Dec. 1998

PASSWORD=`awk '$1 ~ /^1$/ {print $2; exit}' /etc/chrony/chrony.keys`
cat << EOF | /usr/bin/chronyc
password $PASSWORD
online
EOF
exit 0

#!/bin/sh
# This script tells chronyd that the connection is down
# so that it won't try to contact the server. 
# John Hasler <jhasler@debian.org> 1 Dec. 1998

PASSWORD=`awk '$1 ~ /^1$/ {print $2; exit}' /etc/chrony/chrony.keys`
cat << EOF | /usr/bin/chronyc
password $PASSWORD
offline
EOF

/etc/chrony/chrony.keys should look like this (with a different password):

1 54PAwtZ9

and have these permissions:

-rw-r-----    1 root     root   11 Jun 21 20:35   /etc/chrony/chrony.keys

Run chronyc and type password followed by the password in
/etc/chrony/chrony.keys.

-- 
John Hasler
john@dhh.gt.org
Dancing Horse Hill
Elmwood, Wisconsin


-- 
To UNSUBSCRIBE, email to debian-user-request@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org



Reply to: