New to PVE/Debian - possible to get color over ssh?

pgis

New Member
Jun 11, 2021
27
4
3
123
I am new to PVE and Debian, coming from an environment that mostly VMware and Ubuntu. One of my first steps bringing up new systems is adding the support in ssh for colorized prompts and cmd outputs which I can't seem to get working with the same tricks (editing .bashrc and/or the ssh conf file to include <force_color_prompt=yes>) I used on ubuntu... also I was using putty for a client but have just recently been shown VS Code with Remote-SSH and Peacock exstensions which is straight up dreamy... dont think I'm going back to putty...

personally I feel color makes it easier to visually jump around the cmd line...

anyone else care about this enough to figure it out?

thanks
 
  • Like
Reactions: Daniel Gamboa
the color scheming of the commands mostly depend on how your environment variables are set up, e.g. important is the "TERM" variable
the commands decide then how to send color info depending on that. which variable is needed/supported depends mostly on the terminal-emulator you use

i personally use rxvt-unicode and use 'xterm-256color' or 'screen-256color' as TERM variable

see also https://wiki.archlinux.org/title/Color_output_in_console
for more general info
 
  • Like
Reactions: Stoiko Ivanov

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!