No history after unexpected disconnect

When I lose connection due to local network changes (when I connect to VPN and my def routing changed), auto-reconnecting works well, but where is all history of the previous session?

Seems nothing is saving into remote bash history.

Do you mean history in file ~/.bash_history?

Kindly Regards,

Yang

Yes, I can't see my previous commands in the history after reconnecting (when I use the cursor UP/DOWN button as usual).

This is more or less a bash configuration issue, please take a look at this solution:

Kindly Regards,

Yang