!PbtOpdWBSRFbEZRLIf:numtide.com

Nix Community Projects

644 Members
Meta discussions related to https://nix-community.org. (For project specific discussions use github issues or projects own matrix channel). Need help from an admin? Open an issue on https://github.com/nix-community/infra/issues163 Servers

Load older messages


SenderMessageTime
4 Dec 2023
@kranzes:matrix.orgIlan Joselevich (Kranzes)openssh has been supporting -sk keys for a while now though so idk14:42:13
@kranzes:matrix.orgIlan Joselevich (Kranzes)I think that's the problem14:50:10
@kranzes:matrix.orgIlan Joselevich (Kranzes) when using -v I see that these are the supported key types kex_input_ext_info: server-sig-algs=<ssh-ed25519,ssh-rsa,rsa-sha2-256,rsa-sha2-512,ssh-dss,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521> 14:50:22
@kranzes:matrix.orgIlan Joselevich (Kranzes)which does not include mine14:50:45
@kranzes:matrix.orgIlan Joselevich (Kranzes)

when I try to ssh into one of my nixos systems it's this:

kex_input_ext_info: server-sig-algs=<ssh-ed25519,sk-ssh-ed25519@openssh.com,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,sk-ecdsa-sha2-nistp256@openssh.com,webauthn-sk-ecdsa-sha2-nistp256@openssh.com,ssh-dss,ssh-rsa,rsa-sha2-256,rsa-sha2-512>

14:51:04
@kranzes:matrix.orgIlan Joselevich (Kranzes)https://github.com/Yubico/libfido2/issues/46414:54:22
@kranzes:matrix.orgIlan Joselevich (Kranzes)Here's an issue for this14:54:29
@kranzes:matrix.orgIlan Joselevich (Kranzes)Seems to have some workarounds, would be nice if you could implement them as it seems other people also have -sk keys configured for the community darwin builder, and it probably doesn't work for them either.14:55:14
@kranzes:matrix.orgIlan Joselevich (Kranzes)Redacted or Malformed Event14:58:22
@lily:lily.flowersLily Foster
In reply to @kranzes:matrix.org

libfido2 in nixpkgs already has what we need, just gotta plug that into sshd:

[kranzes@pongo ~]$ nix build nixpkgs\#libfido2 --system x86_64-darwin
[kranzes@pongo ~]$ cd result
[kranzes@pongo ~/result]$ ls
bin  lib
[kranzes@pongo ~/result]$ tree
.
├── bin
│   ├── fido2-assert
│   ├── fido2-cred
│   └── fido2-token
└── lib
    ├── libfido2.1.13.0.dylib
    ├── libfido2.1.dylib -> libfido2.1.13.0.dylib
    ├── libfido2.a
    └── libfido2.dylib -> libfido2.1.dylib
i mean the nixpkgs openssh is already built with -sk key support on darwin. i assume it's using the openssh built-in to macOS though
15:02:00
@kranzes:matrix.orgIlan Joselevich (Kranzes)It's not.15:02:15
@lily:lily.flowersLily FosterWhat's not?15:02:31
@lily:lily.flowersLily FosterUsing the built-in openssh or our openssh is not compiled with -sk key support?15:02:41
@kranzes:matrix.orgIlan Joselevich (Kranzes)The darwin box is using the MacOS provided openssh.15:02:54
@lily:lily.flowersLily Fosteryeah, so we could presumably switch it to use the nixpkgs openssh, no?15:03:18
@lily:lily.flowersLily Fosteror am i misunderstanding what you're saying15:03:24
@kranzes:matrix.orgIlan Joselevich (Kranzes)Yeah15:03:28
@kranzes:matrix.orgIlan Joselevich (Kranzes)If you can help figure this out15:03:35
@kranzes:matrix.orgIlan Joselevich (Kranzes)

replacing ssh with Homebrew's will break integrations with keychain etc, so that's why I'm not doing it.

15:04:21
@kranzes:matrix.orgIlan Joselevich (Kranzes)replacing it completely can have some problems with launchctl and keychain15:04:44
@kranzes:matrix.orgIlan Joselevich (Kranzes)Oh someone says that this entire problem was fixed in MacOS Venture15:06:05
@kranzes:matrix.orgIlan Joselevich (Kranzes) * Oh someone says that this entire problem was fixed in MacOS Ventura15:06:07
@lily:lily.flowersLily Fosterlooks like support would need to be added to nix-darwin, yeah: https://github.com/LnL7/nix-darwin/issues/62715:06:15
@kranzes:matrix.orgIlan Joselevich (Kranzes)Do you know what version we're running on?15:06:16
@lily:lily.flowersLily Foster
lily@darwin03> sw_vers                                                                                                                                                     ~
ProductName:		macOS
ProductVersion:		13.6.1
BuildVersion:		22G313
``
15:06:56
@lily:lily.flowersLily Foster *
lily@darwin03> sw_vers
ProductName:		macOS
ProductVersion:		13.6.1
BuildVersion:		22G313
15:07:06
@kranzes:matrix.orgIlan Joselevich (Kranzes)That's ventura15:07:29
@kranzes:matrix.orgIlan Joselevich (Kranzes)hmmm15:07:32
@kranzes:matrix.orgIlan Joselevich (Kranzes)Well you got access now the the machine, can you check supported keys and such15:07:59
@kranzes:matrix.orgIlan Joselevich (Kranzes)I have no way of fixing this myself without access15:08:08

Show newer messages


Back to Room ListRoom Version: 6