summary refs log blame commit diff
path: root/pkgs/tools/networking/openssh/copyid.nix
blob: 40707c2a7346272588b98e6ff0dc771a730daf34 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
                        
 
                                             







                                                                       
{ runCommand, openssh }:

runCommand "ssh-copy-id-${openssh.version}" {
  meta = openssh.meta // {
    description = "A tool to copy SSH public keys to a remote machine";
    priority = (openssh.meta.priority or 0) - 1;
  };
} ''
  install -Dm 755 {${openssh},$out}/bin/ssh-copy-id
  install -Dm 644 {${openssh},$out}/share/man/man1/ssh-copy-id.1.gz
''