Skip to main content
ra-v83
New Member
March 17, 2026
Question

History of entered ssh commands

  • March 17, 2026
  • 3 replies
  • 600 views

Hello :)
I have a question about connecting via Putty or PowerShell. How do I clear the history of entered commands that are substituted after pressing the up and down keys? Connecting via SSH to the FG900, I don't know where the history of such commands is located. Please help.

3 replies

funkylicious
SuperUser
SuperUser
March 17, 2026

hi,

i dont think there is such a command/way, other than closing the ssh session and re-opening it.

in the webUI when you open the CLI console, you have a button to clear the session but thats pretty much it.

"jack of all trades, master of none"
ra-v83
ra-v83Author
New Member
March 18, 2026

Thanks for the reply.

I've checked these basic things and unfortunately, the problem doesn't persist. These commands don't appear when connected to another device. Also, just to be sure, I connected to the FG900 from a different host I've never connected to before. I used PowerShell, and the commands I entered much earlier from the other device still appear. I concluded that the FG900 has a command memory somewhere, but I don't know how to view it and reset it.

Toshi_Esumi
SuperUser
SuperUser
March 18, 2026

Likely you're seeing contents of history buffer on the SSH client software side, not on the FGT. Try SSH into the same 900x from another client machine. You shouldn't see the same history. 
Also try console into it. When I tried a console on 60E-POE, when I log out then re-log in, there was no history available with up/down arrow keys.

Toshi 

ra-v83
ra-v83Author
New Member
March 18, 2026

?

ra-v83
ra-v83Author
New Member
May 11, 2026

For those interested,
I upgraded and then rebooted. It turns out that rebooting clears the entered commands from memory, leaving me with a clean slate. This is the only solution for me. Nothing else helped to get rid of the previously entered commands.