Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Segfault when printing the server public key #41

Open
graywolf opened this issue May 4, 2024 · 0 comments
Open

Segfault when printing the server public key #41

graywolf opened this issue May 4, 2024 · 0 comments
Assignees
Labels

Comments

@graywolf
Copy link

graywolf commented May 4, 2024

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.

@artyom-poptsov artyom-poptsov self-assigned this May 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants