mac-setup icon indicating copy to clipboard operation
mac-setup copied to clipboard

Setting up SSH (config)

Open Kyslik opened this issue 6 years ago • 7 comments

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.

Kyslik avatar Oct 16 '17 07:10 Kyslik

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

simeg avatar Oct 17 '17 19:10 simeg

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

Kyslik avatar Oct 19 '17 17:10 Kyslik

+1 to these points.

sb2nov avatar Oct 21 '17 06:10 sb2nov

I think we need to tackle this from more than just one context, from top of my head:

  1. communicating with git server GitHub / GitLab (obviously using ssh-key)
  2. ssh to a box
  3. 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.

Kyslik avatar Jan 04 '18 20:01 Kyslik

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)".

simeg avatar Jan 06 '18 02:01 simeg

Sounds like a great idea. I agree we could start with the basics and slowly build this over time.

sb2nov avatar Jan 07 '18 00:01 sb2nov

Some of the topics were covered in PR https://github.com/sb2nov/mac-setup/pull/192

simeg avatar Feb 04 '18 09:02 simeg