buf.putRawPublicKey(pub);
final byte[] keyBin = buf.getCompactData();
for (final InetSocketAddress addr : myAddresses()) {
try {
r.add(new HostKey(SocketUtil.format(addr, IANA_SSH_PORT), keyBin));
} catch (JSchException e) {
log.warn("Cannot format SSHD host key", e);
}
}
}