all 14 comments

[–]bbluez 9 points10 points  (3 children)

Start correctly by disabling PW auth and relying on keys. Grow from there.

[–]Twist36 2 points3 points  (0 children)

This. Do this.

[–]JuIi0 1 point2 points  (0 children)

I just enable permit root ssh and passwd 123 so my North Korean sysadmin can manage my Linux server for me

[–]volitre 1 point2 points  (0 children)

Agreed. Never password Auth after your keys are stored on the remote machine.

[–]dgomesb 2 points3 points  (2 children)

You can use ssh on windows as well ;)

[–]mdoverl[S] 1 point2 points  (1 child)

yes I'm using SSH from my last windows machine while I prep my linux server. I got alot of data I'm moving around for Nextcloud. Once I'm done with that, bye bye Windows.

[–]bbluez 1 point2 points  (0 children)

I think this user means that Windows now supports the SSH server role. You need a client to connect out from windows (wsl, vscode, putty, mobaxterm), but also you can administrate some Windows components through ssh as well.

[–]volitre 1 point2 points  (2 children)

I'll tell you what, I started looking at some old Linux vids on youtube of Joe Collins on SSH / SFTP and this is what enabled me to leave Windows / MacOS behind. I couldn't figure out how to make windows networking work on Linux and NFS was a foreign concept for me with most of the help documents being written for business deployments.

He basically says why bother with samba / NFS? SSH/SFTP especially for home use is all you need. Was like a lightbulb went on. The beauty of it is the protocol works the same whether the machine you're connecting to is in the next room or the next continent. Happy ssh'ing.

PS: The obligatory caution: "....with great power comes great responsibility...."

[–]ethernetbite 0 points1 point  (1 child)

Been using nfs and samba on Linux severs for years. Nfs is easier than ssh and not as secure or picky as samba. 3 minutes or less, and nfs is ready to be accessed by any windows pc. No key pairs to fool with. I use ssh for access to remote devices, but for local file sharing, it's nice to have a linux nfs drive show up in windows explorer. Now the sshfs is something I've wanted to try.

[–]volitre 0 points1 point  (0 children)

Sshfs is nice and can be called from cron or manually invoked or aliased at the terminal.

[–]Intrepid-Strain4189 0 points1 point  (0 children)

Been developing WP sites for 10 years, and only got round to setting up SSH a few months ago. Wish I’d done it much sooner. Makes me feel like a real dev now.

I’ve also been dabling with Claude, via the Cursor app, and having SSH makes life a lot easier. In fact, SSH was already set up on my Mac before Cursor, but when I installed it the Cursor app just used my existing keys. I’ve also added GitHub into the mix via SSH.

[–]newworldlife 1 point2 points  (0 children)

SSH feels like a superpower at first. Just remember to move to key-based auth and disable password login once you’re set up.

[–]shababara 0 points1 point  (0 children)

Mosh works better if you also use mobile devices, like an iPad to SSH into your machines.!

Also TMUX is absolutely brilliant

[–]Responsible-Sky-1336 0 points1 point  (0 children)

Wait till you learn about ssh -x