Blame

3eea1a Steven Anderson 2024-12-17 19:42:59 1
# ssh
2
3
#### Create ed25519 Key
4
ssh-keygen -t ed25519 -C "comment or email <email@example.com>""
5
6
#### diff over ssh
7
diff foo <(ssh server 'cat foo')
8
diff <(ssh server1 'cat foo') <(ssh server2 'cat foo')
9
10
#### poor mans ssh tunnel
11
<local port> <target> <remote port> <bastion>
12
ssh -L 8000:example.com:443 mybastionhost.com
13
14
#### Manually Create `authorized_keys`
15
I don't usually have password auth enabled which breaks `ssh-copy-id` so I need to manually create keys if I'm doing some testing.
16
17
mkdir .ssh
18
chmod 700 .ssh
19
touch .ssh/authorized_keys
20
chmod 400 .ssh/authorized_keys
21
chown -R user:user .ssh