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.
To add to this comment: You will need termux, which is a terminal emulator for android. You should download it from f-droid not google play store (because the google play hosted version is outdated).
Depends, if you are securing your ssh keys properly and keeping it up to date it may not be a problem.