You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am observing this weird behaviour with Windows Terminal (PowerShell profile) since quite some time that when my last run command is ssh (ssh -i C:\Users\user\Documents\ssh.key eon@10.10.10.10) and when I close the ssh connection OR reopen windows terminal and press up arrow key to access my last run ssh command (from saved history), it doesnt show up at all. However, all the other normal commands do show up as usual when I access them via up arrow key on empty terminal which were last ran.
So, I just want to understand if Windows Terminal have special casing to not store ssh commands in terminal history but it stores other commands just fine? and how do I fix it so if my last run command is ssh cmd and when I reopen terminal or try to access it via up arrow key, it is available there?
please let me know if I need to provide anything else which I might've missed.
P.S. I have done search for "ssh" and "ssh history" in open discussions but it shows many results, I went and looked at some but they did not feel relevant to my issue. I'm not sure what other keywords to search for to find similar discussions to my own. I apologise!
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
hello all and greetings,
I am observing this weird behaviour with Windows Terminal (PowerShell profile) since quite some time that when my last run command is ssh (ssh -i C:\Users\user\Documents\ssh.key eon@10.10.10.10) and when I close the ssh connection OR reopen windows terminal and press up arrow key to access my last run ssh command (from saved history), it doesnt show up at all. However, all the other normal commands do show up as usual when I access them via up arrow key on empty terminal which were last ran.
So, I just want to understand if Windows Terminal have special casing to not store ssh commands in terminal history but it stores other commands just fine? and how do I fix it so if my last run command is ssh cmd and when I reopen terminal or try to access it via up arrow key, it is available there?
My Windows Terminal version:

My WIndows 11 version:

My Terminal settings.json
please let me know if I need to provide anything else which I might've missed.
P.S. I have done search for "ssh" and "ssh history" in open discussions but it shows many results, I went and looked at some but they did not feel relevant to my issue. I'm not sure what other keywords to search for to find similar discussions to my own. I apologise!
Beta Was this translation helpful? Give feedback.
All reactions