Commit 3eea1a

2024-12-17 19:42:59 Steven Anderson: initial ssh
/dev/null .. ScriptFu/unix/ssh.md
@@ 0,0 1,21 @@
+ # ssh
+
+ #### Create ed25519 Key
+ ssh-keygen -t ed25519 -C "comment or email <email@example.com>""
+
+ #### diff over ssh
+ diff foo <(ssh server 'cat foo')
+ diff <(ssh server1 'cat foo') <(ssh server2 'cat foo')
+
+ #### poor mans ssh tunnel
+ <local port> <target> <remote port> <bastion>
+ ssh -L 8000:example.com:443 mybastionhost.com
+
+ #### Manually Create `authorized_keys`
+ 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.
+
+ mkdir .ssh
+ chmod 700 .ssh
+ touch .ssh/authorized_keys
+ chmod 400 .ssh/authorized_keys
+ chown -R user:user .ssh
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9