0

Using gnome-terminal I connect to my servers at work using SSH from Ubuntu 18.04 or 22.04. These work servers can be Sparc Solaris or Linux (Fedora).

When I connect to the Solaris servers from my local terminal, commands like ls are not colorized. So, I have setup aliases like ls --color=auto. After that the colors are exactly the same as my terminal before SSH.

When I connect to the Fedora Linux servers from my local terminal on the other hand, they are already colorized. I.e.: for commands like ls there is already an alias ls --color=auto setup. But the color is much darker than my terminal before SSH.

When I connect to my own server running Ubuntu 18.04 from my own terminal they are also colorized, and the colors are the same as in the Ubuntu I connect from.

Now interestingly, when I connect to the Solaris server from the Linux Fedora server the colors are also dark but a different dark.

Colors in my terminal (Ubuntu 18.04) before SSH. In Solaris SSH session. And in Ubuntu 18.04 SSH session:

enter image description here

Colors in Linux Fedora SSH session:

enter image description here

Solars SSH session from Fedora Linux SSH session:

enter image description here

Where is the connection to Linux Fedora taking the colors from? And what about the connection to Solaris?

PS: Because I set it myself the colors in the prompt (PS1) are the same in all connections.

1

1 Answer 1

0

All of the colors are coming from the machine that you are connecting to. You would have to set the colors manually to make them the same. The reason that they are different is because they are different operating systems.

2
  • But Solaris has one set of colors when I connect from my local terminal and a different set of colors when I connect from the Fedora Linux box. In both cases I connect to the same user and the same profile is invoked..
    – jav
    Commented Nov 9, 2022 at 15:37
  • The only other thing I can think of is that the different OSes render the colors differently. Commented Nov 9, 2022 at 20:33

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .