blob: e9cf7ad4927637544f8d66ee249632c9755babdc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
#+title: SSH Configuration
Configure SSH. Keys should be added to the SSH agent. Specify the key file and use the system keychain.
#+begin_src nix
{ config, pkgs, ... }:
{
programs.ssh = {
enable = true;
addKeysToAgent = "yes";
matchBlocks = {
"*" = {
identityFile = "~/.ssh/id_ed25519";
extraOptions = {
"UseKeychain" = "yes";
};
};
#+end_src
Here is my University of Manitoba computer science SSH server. My account is =janzenj2=.
#+begin_src nix
"aviary" = {
hostname = "aviary.cs.umanitoba.ca";
user = "janzenj2";
};
#+end_src
Here is my web server at =jjanzen.ca=. Set the =$TERM= variable to =xterm=.
#+begin_src nix
"jjanzen.ca" = {
setEnv = {
"TERM" = "xterm";
};
};
#+end_src
Here is my oracle cloud instance login. Use the =opc= user and a provided key file. Set the =$TERM= variable to =xterm=.
#+begin_src nix
"oracle" = {
setEnv = {
"TERM" = "xterm";
};
hostname = "jjanzen.ca";
identityFile = "~/.ssh/oracle";
identitiesOnly = true;
user = "opc";
};
};
};
}
#+end_src
|