add debug
This commit is contained in:
		@@ -141,6 +141,9 @@ func getHostKey(host string) ssh.PublicKey {
 | 
				
			|||||||
		if len(fields) != 3 {
 | 
							if len(fields) != 3 {
 | 
				
			||||||
			continue
 | 
								continue
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
 | 
							for _, field := range fields {
 | 
				
			||||||
 | 
								log.Println(field)
 | 
				
			||||||
 | 
							}
 | 
				
			||||||
		if strings.Contains(fields[0], base64.StdEncoding.EncodeToString([]byte(host))) {
 | 
							if strings.Contains(fields[0], base64.StdEncoding.EncodeToString([]byte(host))) {
 | 
				
			||||||
			var err error
 | 
								var err error
 | 
				
			||||||
			hostKey, _, _, _, err = ssh.ParseAuthorizedKey(scanner.Bytes())
 | 
								hostKey, _, _, _, err = ssh.ParseAuthorizedKey(scanner.Bytes())
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user