complete-computing-environment/ssh_configuration.org

1.4 KiB

SSH Configuration

(provide 'cce/ssh)
{...}:
{
  services.openssh.enable = true;
  programs.ssh.startAgent = true;
}
{...}:
{
  programs.ssh = {
    enable = true;
    matchBlocks = {
      "*" = {
        identityFile = "/home/rrix/.ssh/id_rsa";
        extraOptions = {
          PubkeyAcceptedKeyTypes = "+ssh-rsa";
        };
      };
      tunneled = {
        hostname = "127.0.0.1";
        port = 22123;
      };
      remarkable = {
        hostname = "10.11.99.1";
        user = "root";
      };
      fontkeming = {
        hostname = "fontkeming.fail";
        user = "rrix";
        localForwards = [
          {
            host.address = "localhost";
            bind.port = 9091;
            host.port = 9091;
          }
          {
            host.address = "localhost";
            bind.port = 8385;
            host.port = 8384;
          }
        ];
      };
    };
  };
}