mac-setup
mac-setup copied to clipboard
Setting up SSH (config)
Setting up SSH config is maybe a bit out of scope, but sure is helpful.
Something similar to this https://serversforhackers.com/s/ssh-usage-tips-and-tricks but in text.
I agree, this would be helpful.
Some topics that I'd like to be covered:
- What SSH keys are and why they exist
- Creating SSH keys
- The SSH-agent
- Executing a command on a remote server using SSH
- SCP maybe? Since it's based on SSH, and it's very useful
Good info to have is also how to copy ssh key to my server and troubleshooting "why my ssh key does not work":
- home folder (on remote) needs to have
755
permissions (or .ssh folder, not really sure) -
authorized_keys file needs to be set to
600
+1 to these points.
I think we need to tackle this from more than just one context, from top of my head:
- communicating with git server GitHub / GitLab (obviously using ssh-key)
- ssh to a box
- explanation of
.ssh/config
file
3rd one is not a context but can be applied to first and second context I mention above.
Besides that, shall we create new section something like "secure shell SSH" or shall we put it within iTerm2 setup.
Where do we draw the line? Should we as well explain how to configure sshd
to accept ssh-key login attempts only on a box? - I think we should put as much info as possible.
I like your enthusiasm @Kyslik! What if we start with the basic stuff and then we could take it from there? See how it feels :) I definitely think it should be in a separate section called something like "Secure Shell (SSH)".
Sounds like a great idea. I agree we could start with the basics and slowly build this over time.
Some of the topics were covered in PR https://github.com/sb2nov/mac-setup/pull/192