guile-ssh icon indicating copy to clipboard operation
guile-ssh copied to clipboard

Segfault when printing the server public key

Open graywolf opened this issue 1 year ago • 0 comments

Hello,

I found out that trying to print the public key of the server leads to a segfault:

$ guile -c '(use-modules (ssh session)) (define s (make-session #:host "terminal.shop")) (connect! s) (pk (get-server-public-key s))'

;;; ((segmentation fault

The workaround seems to be to also require (ssh key):

$ guile -c '(use-modules (ssh key) (ssh session)) (define s (make-session #:host "terminal.shop")) (connect! s) (pk (get-server-public-key s))'

;;; (#<key ed25519 (public) 7fd07cd60fc0>)

That does not seem to be documented, and, if the import is required, I believe it should happen automatically. The segfault is not great user experience.

graywolf avatar May 04 '24 18:05 graywolf