With bisect helper:
$cat ../test-ssh.sh
#!/bin/bash
set -ux
make clean
autoreconf && ./configure && make -j4
if [[ $? -ne 0 ]]; then
# skip build issue
exit 125
fi
rm ~/.ssh/known_hosts /root/.ssh/known_hosts.old /root/.ssh/known_hosts
./ssh-keyscan 10.245.71.133 > ~/.ssh/known_hosts
./ssh-keygen -H
./ssh-keygen -H
# here .old and current should have no diff
# no diff = still ok, diff = broken - diff RC matches that
diff -q /root/.ssh/known_hosts.old /root/.ssh/known_hosts
$ git bisect start V_7_2_P2 V_6_6_P1
Gives me:
$ git bisect log
# bad: [5c35450a0c901d9375fb23343a8dc82397da5f75] update versions for release
# good: [19158b2447e35838d69b2b735fb640d1e86061ea] - (djm) Release OpenSSH 6.6
git bisect start 'V_7_2_P2' 'V_6_6_P1'
# bad: [39e2f1229562e1195169905607bc12290d21f021] upstream commit
git bisect bad 39e2f1229562e1195169905607bc12290d21f021
# skip: [08c0eebf55d70a9ae1964399e609288ae3186a0c] upstream commit
git bisect skip 08c0eebf55d70a9ae1964399e609288ae3186a0c
# good: [f067cca2bc20c86b110174c3fef04086a7f57b13] upstream commit
git bisect good f067cca2bc20c86b110174c3fef04086a7f57b13
# bad: [fe8a3a51699afbc6407a8fae59b73349d01e49f8] upstream commit
git bisect bad fe8a3a51699afbc6407a8fae59b73349d01e49f8
# good: [9010902954a40b59d0bf3df3ccbc3140a653e2bc] upstream commit
git bisect good 9010902954a40b59d0bf3df3ccbc3140a653e2bc
# bad: [3fdc88a0def4f86aa88a5846ac079dc964c0546a] upstream commit
git bisect bad 3fdc88a0def4f86aa88a5846ac079dc964c0546a
# bad: [9e06a0fb23ec55d9223b26a45bb63c7649e2f2f2] upstream commit
git bisect bad 9e06a0fb23ec55d9223b26a45bb63c7649e2f2f2
# good: [f101d8291da01bbbfd6fb8c569cfd0cc61c0d346] upstream commit
git bisect good f101d8291da01bbbfd6fb8c569cfd0cc61c0d346
# bad: [cecb30bc2ba6d594366e657d664d5c494b6c8a7f] upstream commit
git bisect bad cecb30bc2ba6d594366e657d664d5c494b6c8a7f
# good: [c29811cc480a260e42fd88849fc86a80c1e91038] upstream commit
git bisect good c29811cc480a260e42fd88849fc86a80c1e91038
# good: [ec3d065df3a9557ea96b02d061fd821a18c1a0b9] upstream commit
git bisect good ec3d065df3a9557ea96b02d061fd821a18c1a0b9
# first bad commit: [cecb30bc2ba6d594366e657d664d5c494b6c8a7f] upstream commit
The offending commit you want to report in your upstream bug is:
cecb30bc2ba6d594366e657d664d5c494b6c8a7f is the first bad commit
commit cecb30bc2ba6d594366e657d664d5c494b6c8a7f
Author: <email address hidden> <email address hidden>
Date: Sun Jan 18 21:49:42 2015 +0000
upstream commit
make ssh-keygen use hostkeys_foreach(). Removes some
horrendous code; ok markus@
Upstream accidentally dropped the "non-overwrite" feature of ssh-keygen -H, but it is part of a much bigger rework, therefore this is nothing we just can/want to revert.
On mindrot. org/openssh. git
git://anongit.
With bisect helper:
$cat ../test-ssh.sh
#!/bin/bash
set -ux
make clean
autoreconf && ./configure && make -j4
if [[ $? -ne 0 ]]; then
# skip build issue
exit 125
fi
rm ~/.ssh/known_hosts /root/. ssh/known_ hosts.old /root/. ssh/known_ hosts ssh/known_ hosts.old /root/. ssh/known_ hosts
./ssh-keyscan 10.245.71.133 > ~/.ssh/known_hosts
./ssh-keygen -H
./ssh-keygen -H
# here .old and current should have no diff
# no diff = still ok, diff = broken - diff RC matches that
diff -q /root/.
$ git bisect start V_7_2_P2 V_6_6_P1
Gives me:
$ git bisect log 9375fb23343a8dc 82397da5f75] update versions for release 38d69b2b735fb64 0d1e86061ea] - (djm) Release OpenSSH 6.6 195169905607bc1 2290d21f021] upstream commit 95169905607bc12 290d21f021 9ae1964399e6092 88ae3186a0c] upstream commit ae1964399e60928 8ae3186a0c 6b110174c3fef04 086a7f57b13] upstream commit b110174c3fef040 86a7f57b13 c6407a8fae59b73 349d01e49f8] upstream commit 6407a8fae59b733 49d01e49f8 59d0bf3df3ccbc3 140a653e2bc] upstream commit 9d0bf3df3ccbc31 40a653e2bc 6aa88a5846ac079 dc964c0546a] upstream commit aa88a5846ac079d c964c0546a d9223b26a45bb63 c7649e2f2f2] upstream commit 9223b26a45bb63c 7649e2f2f2 bbfd6fb8c569cfd 0cc61c0d346] upstream commit bfd6fb8c569cfd0 cc61c0d346 94366e657d664d5 c494b6c8a7f] upstream commit 4366e657d664d5c 494b6c8a7f 0e42fd88849fc86 a80c1e91038] upstream commit e42fd88849fc86a 80c1e91038 7ea96b02d061fd8 21a18c1a0b9] upstream commit ea96b02d061fd82 1a18c1a0b9 94366e657d664d5 c494b6c8a7f] upstream commit
# bad: [5c35450a0c901d
# good: [19158b2447e358
git bisect start 'V_7_2_P2' 'V_6_6_P1'
# bad: [39e2f1229562e1
git bisect bad 39e2f1229562e11
# skip: [08c0eebf55d70a
git bisect skip 08c0eebf55d70a9
# good: [f067cca2bc20c8
git bisect good f067cca2bc20c86
# bad: [fe8a3a51699afb
git bisect bad fe8a3a51699afbc
# good: [9010902954a40b
git bisect good 9010902954a40b5
# bad: [3fdc88a0def4f8
git bisect bad 3fdc88a0def4f86
# bad: [9e06a0fb23ec55
git bisect bad 9e06a0fb23ec55d
# good: [f101d8291da01b
git bisect good f101d8291da01bb
# bad: [cecb30bc2ba6d5
git bisect bad cecb30bc2ba6d59
# good: [c29811cc480a26
git bisect good c29811cc480a260
# good: [ec3d065df3a955
git bisect good ec3d065df3a9557
# first bad commit: [cecb30bc2ba6d5
The offending commit you want to report in your upstream bug is: 4366e657d664d5c 494b6c8a7f is the first bad commit 4366e657d664d5c 494b6c8a7f
cecb30bc2ba6d59
commit cecb30bc2ba6d59
Author: <email address hidden> <email address hidden>
Date: Sun Jan 18 21:49:42 2015 +0000
upstream commit
make ssh-keygen use hostkeys_foreach(). Removes some
horrendous code; ok markus@
Upstream accidentally dropped the "non-overwrite" feature of ssh-keygen -H, but it is part of a much bigger rework, therefore this is nothing we just can/want to revert.