Skip to content

Latest commit

 

History

History
executable file
·
38 lines (27 loc) · 534 Bytes

ssh.md

File metadata and controls

executable file
·
38 lines (27 loc) · 534 Bytes

SSH

{ config, pkgs, lib, ... }:
{
  programs.ssh = {
    enable = true;
    matchBlocks = {
      <<<PereWork/home/ssh-hosts>>>
    };
  };
}

Hosts

Git remotes

Login to git remotes using keys, instead of writing the password each time

"git.mvlabs.it" = {
  user         = "git";
  identityFile = "~/.ssh/MVLabsGit";
};

"10.227.15.64" = {
  identityFile = "~/.ssh/MVLabsGit";
};

Private keys

What?

You must never share private keys!!!