mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-29 14:57:28 +03:00
dc5cd7800a
Issue #29774
13 lines
320 B
Nix
13 lines
320 B
Nix
with import ../../.. {};
|
|
|
|
runCommand "gen-keys" {
|
|
buildInputs = [ dropbear openssh ];
|
|
}
|
|
''
|
|
mkdir $out
|
|
dropbearkey -t rsa -f $out/dropbear.priv -s 4096 | sed -n 2p > $out/dropbear.pub
|
|
ssh-keygen -q -t rsa -b 4096 -N "" -f client
|
|
mv client $out/openssh.priv
|
|
mv client.pub $out/openssh.pub
|
|
''
|