Hosting an SSH Server
I decided one day over break that I really wanted a remote server. I had a spare laptop, a router at home, and far too much free time. The obvious solution was to combine the three.
It ended up being much simpler than I expected to set up. On my old laptop, I installed an SSH server:
I made a few changes to the default config:
Created and added an SSH key:
And copied it to my new computer:
SSH now worked perfectly when I typed in the IP address. I was moving back to USC in a few weeks though, my server would be behind a firewall. Not to worry though, with a mutter of approval from my dad, I forwarded port 666 on the router to 666 on debian-acer.
Worked like a charm.
Appendix
- If, like me, you have an outdated laptop which refuses to start networking at boot, try this:
- More elegant way to specify ssh ports: