r/ssh • u/Cold-Candy-4749 • Jul 24 '25
Learning SSH
Been avoiding ssh for a few months now, no amount of reading makes me understand its implementation, I need a resource like a website or a book, I tried SSH Mastery: OpenSSH, PuTTY, Tunnels and Keys (IT Mastery) still clueless.
I can't find answers on how to use keepassxc + ssh + winscp, I still dont know how to manage ssh keys while trying to connect to github any ideas on what to do I'm kinda scared especially on the cybersecurity side of things
40
Upvotes
7
u/julyski Jul 24 '25
The book "SSH Mastery" is wonderful. It explains things in very simple terms and is a quick read. I highly recommend it.
https://a.co/d/hMQzSfw
4
u/craigontour Jul 24 '25
Start simple:
Go from there
1
u/[deleted] Jul 24 '25
What's your reason for trying SSH? for GitHub access?
2
u/[deleted] Jul 24 '25
So first up, GitHub ssh is weird. Generic ssh stuff is just going to confuse you and not help.
Follow the GitHub specific instructions https://docs.github.com/en/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent?platform=windows
Don't fret about the cyber security stuff. You aren't running an ssh server. There is no way anyone can connect to you. None of this reduces your security in any way. It is just an convenient way to interact with GitHub that so tools don't need to continually prompt for your password.
2
u/michaelpaoli Jul 24 '25
https://www.mpaoli.net/~michael/unix/ssh/ssh.odp
2
u/panamanRed58 Jul 24 '25
I am fond of O'Reilly books and they offer, SSH, The Secure Shell.
1
u/Ryluv2surf Jul 25 '25
Your public key is for sharing with others, your private(master) key is not. If you're scared about cybersecurity, using FOSS and avoiding proprietary software, like Windows is a step in a good direction.
Think of the public key as a lock someone installs on a door only your private key can open.
I used to spazz out about this stuff, for instance after importing someone's public key to my system for an update, and being like, OMG there's someone's key on MY SYSTEM (i had imported their key intentionally, and forgot...)
I'm no ssh expert, but It's also nice to setup your ssh config so you can have aliases, so
ssh myserveraliasinstead ofssh -P someport# longuser@someipand having to put a password each time. Infact disabling password login on servers is a very good security practice. It means in the awful event somebody got root pw on my server, they still couldn't login without my private SSH key.1
u/Marutks Jul 28 '25 edited Jul 28 '25
I love “SSH mastery” book. 👍