Commit 158e28ca authored by Annika Backstrom's avatar Annika Backstrom

names r hard

parent f2ca36e5
...@@ -38,19 +38,19 @@ on *penny*: ...@@ -38,19 +38,19 @@ on *penny*:
Host coriander Host coriander
HostName coriander.example.com HostName coriander.example.com
User adam User annika
IdentityFile ~/.ssh/id_dsa IdentityFile ~/.ssh/id_dsa
Host mysql-binlog Host mysql-binlog
HostName coriander.example.com HostName coriander.example.com
User adam User annika
IdentityFile ~/.ssh/mysql-binlog-key IdentityFile ~/.ssh/mysql-binlog-key
I run an ssh-agent, so I have to run things through `env -i` to prevent I run an ssh-agent, so I have to run things through `env -i` to prevent
the `rsync` from using my normal key. the `rsync` from using my normal key.
In this case, I manually copied my key into adam@*coriander*'s In this case, I manually copied my key into annika@*coriander*'s
`~/.ssh/authorized_keys` file: `~/.ssh/authorized_keys` file:
...@@ -82,11 +82,11 @@ SSH to the host and see the output: ...@@ -82,11 +82,11 @@ SSH to the host and see the output:
ambackstrom@fsck:~:0$ env -i ssh mysql-binlog ambackstrom@fsck:~:0$ env -i ssh mysql-binlog
SHELL=/bin/bash SHELL=/bin/bash
SSH_CLIENT=10.0.0.2 56490 22 SSH_CLIENT=10.0.0.2 56490 22
USER=adam USER=annika
PATH=/bin:/usr/bin PATH=/bin:/usr/bin
PWD=/home/adam PWD=/home/annika
SHLVL=1 SHLVL=1
HOME=/home/adam HOME=/home/annika
SSH_CONNECTION=10.0.0.2 56490 10.0.0.1 22 SSH_CONNECTION=10.0.0.2 56490 10.0.0.1 22
_=/usr/bin/env _=/usr/bin/env
...@@ -97,11 +97,11 @@ Then once more, specifying a command to run on the server: ...@@ -97,11 +97,11 @@ Then once more, specifying a command to run on the server:
ambackstrom@fsck:~:0$ env -i ssh mysql-binlog 'ls -lAF' ambackstrom@fsck:~:0$ env -i ssh mysql-binlog 'ls -lAF'
SHELL=/bin/bash SHELL=/bin/bash
SSH_CLIENT=10.0.0.2 56546 22 SSH_CLIENT=10.0.0.2 56546 22
USER=adam USER=annika
PATH=/bin:/usr/bin PATH=/bin:/usr/bin
PWD=/home/adam PWD=/home/annika
SHLVL=1 SHLVL=1
HOME=/home/adam HOME=/home/annika
SSH_CONNECTION=10.0.0.2 56546 10.0.0.1 22 SSH_CONNECTION=10.0.0.2 56546 10.0.0.1 22
SSH_ORIGINAL_COMMAND=ls -lAF SSH_ORIGINAL_COMMAND=ls -lAF
_=/usr/bin/env _=/usr/bin/env
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment