I want to be able to control my laptop at home using ssh so whenever I am without my laptop (on the train for example) I can access it by simply connect to the ssh at home.
Is it possible to “leave” ssh open while the laptop is locked?
Is there any security Hazzard in this ?
Also when you setup your router/network config you should be able to access to your laptop and do ssh. But make sure you also do proper security conflagration as well. I only wrote basic config and gives you idea how to to reach. But you wanna do more about it. You can try to setup VPN configuration on your router if possible or you can use something like raspberry pi for in order to reach your local network then you can ssh your machine (safer)
There multiple options you can do but this is just a couple of them.