We can connect to IPMI serial over lan session by
ipmitool sol activate
and exit the session by
"~."
But "~." also exit the ssh session if you are in a ssh session.
"ipmitool sol deactivate" can disable the sol session without exiting the ssh session, but you need only another ssh session to do it.