I’m running cardano relay node but when I close SSH it also close the cardano relay node
Look into screen, tmux, or systemd for keeping it running after you log out.
I solved this using nohup
you should look out for some alternatives.
because it will create a very big log file nohup.out I think.
And over a long time I think it is not a good idea.
To run, systemd is very easy to setup. Once setup it will work forever and make sure your node is connected.
I advise you to look into systemd. Very useful …
Some ideas here : Systemd service file for cardano-node - #8 by hanswurst