예제 #1
0
 public void listKnownHosts() {
   HostKeyRepository hkr = this.jsch.getHostKeyRepository();
   HostKey[] hks = hkr.getHostKey();
   if (hks != null) {
     System.out.println("Host keys in " + hkr.getKnownHostsRepositoryID());
     for (int i = 0; i < hks.length; i++) {
       HostKey hk = hks[i];
       System.out.println(hk.getHost() + " " + hk.getType() + " " + hk.getFingerPrint(jsch));
     }
     System.out.println("");
   }
 }