Clock skew too great
To solve the error Kerberos SessionError: KRB_AP_ERR_SKEW(Clock skew too great) we can use faketime:
# Make sure to edit the IP below
faketime "$(date +'%Y-%m-%d') $(net time -S IP | awk '{print $4}')" date
If the error still doesn't go, following will definitly work:
# Query for time for the particular host
ntpdate -q 10.10.10.10
# Replace the time from above output
FAKETIME="2025-06-13 00:49:57" LD_PRELOAD=/usr/lib/x86_64-linux-gnu/faketime/libfaketime.so.1 date
# One Liner for above command
FAKETIME="$(ntpdate -q 10.10.10.10 | head -n1 | awk '{print $1" "$2" "$3}')" LD_PRELOAD=/usr/lib/x86_64-linux-gnu/faketime/libfaketime.so.1 date