Browse Source

names r hard

pull/1/head
Annika Backstrom 1 year ago
parent
commit
158e28cad3
1 changed files with 9 additions and 9 deletions
  1. 9
    9
      content/1458-locking-down-rsync-using-ssh.md

+ 9
- 9
content/1458-locking-down-rsync-using-ssh.md View File

@@ -38,19 +38,19 @@ on *penny*:
38 38
 
39 39
     Host coriander
40 40
         HostName coriander.example.com
41
-        User adam
41
+        User annika
42 42
         IdentityFile ~/.ssh/id_dsa
43 43
 
44 44
     Host mysql-binlog
45 45
         HostName coriander.example.com
46
-        User adam
46
+        User annika
47 47
         IdentityFile ~/.ssh/mysql-binlog-key
48 48
 
49 49
 
50 50
 I run an ssh-agent, so I have to run things through `env -i` to prevent
51 51
 the `rsync` from using my normal key.
52 52
 
53
-In this case, I manually copied my key into adam@*coriander*'s
53
+In this case, I manually copied my key into annika@*coriander*'s
54 54
 `~/.ssh/authorized_keys` file:
55 55
 
56 56
 
@@ -82,11 +82,11 @@ SSH to the host and see the output:
82 82
     ambackstrom@fsck:~:0$ env -i ssh mysql-binlog
83 83
     SHELL=/bin/bash
84 84
     SSH_CLIENT=10.0.0.2 56490 22
85
-    USER=adam
85
+    USER=annika
86 86
     PATH=/bin:/usr/bin
87
-    PWD=/home/adam
87
+    PWD=/home/annika
88 88
     SHLVL=1
89
-    HOME=/home/adam
89
+    HOME=/home/annika
90 90
     SSH_CONNECTION=10.0.0.2 56490 10.0.0.1 22
91 91
     _=/usr/bin/env
92 92
 
@@ -97,11 +97,11 @@ Then once more, specifying a command to run on the server:
97 97
     ambackstrom@fsck:~:0$ env -i ssh mysql-binlog 'ls -lAF'
98 98
     SHELL=/bin/bash
99 99
     SSH_CLIENT=10.0.0.2 56546 22
100
-    USER=adam
100
+    USER=annika
101 101
     PATH=/bin:/usr/bin
102
-    PWD=/home/adam
102
+    PWD=/home/annika
103 103
     SHLVL=1
104
-    HOME=/home/adam
104
+    HOME=/home/annika
105 105
     SSH_CONNECTION=10.0.0.2 56546 10.0.0.1 22
106 106
     SSH_ORIGINAL_COMMAND=ls -lAF
107 107
     _=/usr/bin/env

Loading…
Cancel
Save