So currently my shell looks something like this when I SSH into my Debian server:
I mostly use PowerShell as the client and customize the background & text colors to match system theme. Command Prompt gives similar results. I could install that fancy Terminal app from the Microsoft Store but wouldn't use it anyway as I don't care to go installing that on all my systems. I like to keep everything as stock as possible & I imagine there'd be a way to fix this if I want to use vanilla PowerShell but first I need to figure out where the dark blue text is coming from. Is the directory text color determined by the Windows client or are there config files on the server driving this? (Perhaps in the .bashrc file?)
At this point it's hard to tell which is the case because I don't see much related to TTY config server-side outside of ssh_config, which doesn't mention anything about shell colors. Client-side when I go to edit PowerShell properties, there are a couple possible settings that could apply to this:
"Popup Text" under PowerShell/CMD >> Properties >> "Colors" Tab, could be what we're looking for but I don't have a Win VM in front of me; I don't know what the default value was and it doesn't seem to make any difference changing this color.
The "Terminal" tab is more likely the settings pertaining to what we see in the shell for an SSH session. I tried "Use Seperate Foreground" and all this did was change my text back to white, but the dark blue text still shows on folders.
Changing the terminal application I tried too, doesn't seem to change anythhing.
At this point I've been floating about this lower priority but very annoying issue for the last year or 2 ongoing as it pops up now and then causing for unreadable output. I've read a lot of other threads mentioning the issue of dark blue text on a black background but I haven't gotten too far with most of them.
The issue presents most prominently in SSH sessions and I even want to say I've seen it a few times in regular PowerShell as well if I'm not mistaken which definitely indicates it to be more of a Windows issue than a Linux one. Now I've tinkered with some command prompt/PowerShell settings since then to where this issue has seemed to have gone away when doing PowerShell stuff but once I initiate an SSH session... hello again old friend. tearing hair out 😃😃
So that's where it gets a little mysterious. Seems like a Windows setting... but also not maybe?
It looks great in a light theme! That's all I can say. Too bad I use dark themes throughout most of the day. 😵