complete-computing-environment/ssh_configuration.org

69 lines
1.4 KiB
Org Mode

:PROPERTIES:
:ID: cce/ssh_configuration
:END:
#+TITLE: SSH Configuration
#+filetags: :Emacs:CCE:System:
#+PROPERTY: header-args :mkdirp yes :results none
#+PROPERTY: header-args:emacs-lisp :tangle ssh.el
#+ARCOLOGY_KEY: cce/ssh
#+ARCOLOGY_ALLOW_CRAWL: t
#+ARROYO_NIXOS_MODULE: nixos/ssh_client.nix
#+ARROYO_HOME_MODULE: hm/ssh_client.nix
#+ARROYO_EMACS_MODULE: ssh
#+begin_src emacs-lisp
(provide 'cce/ssh)
#+end_src
#+begin_src nix :tangle ~/arroyo-nix/nixos/ssh_client.nix
{...}:
{
services.openssh.enable = true;
programs.ssh.startAgent = true;
}
#+end_src
#+begin_src nix :tangle ~/arroyo-nix/hm/ssh_client.nix
{...}:
{
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;
}
];
};
};
};
}
#+end_src