Session keys - Identical on different hosts

I am currently running the self-hosted server with two client machines connected. To my suprise the session keys on both machines are identical. I expected each client to have a unique session with a unique session token in the session_path file. Is this intentional or will this lead to issues further down the road. By the looks of it, filtering the commands on host does correctly filter out any history from the other machine.

The content of the key_path file is hardcoded to the same value for both machines through the NixOS module.

Additionally, if I want the session to be fully declarative, can I store and hardcode this session token in my config?

And last question, how can I see in the history from which host the record originates from?

Thanks in advance :grinning_face:

I expected each client to have a unique session with a unique session token in the session_path file. Is this intentional or will this lead to issues further down the road.

Yes. No.

can I store and hardcode this session token in my config?

Yes, I do this no problem.

how can I see in the history from which host the record originates from

In interactive search you can bring up the inspector view (ctrl-o) and it displays host.

When using atuin search you can define the output format to include host and filter accordingly.

2 Likes