UtoECat's trashpile of manuals, tips and configurations

back home

VIM configurations and tricks

SSH and SSHD

To not confuse shells

You better use differnet terminals for remote, but that's not always an option, and it's annoying.
So, instead, you better at least change the PS1 shell variable and motd as a last resort of mental
help for ya to not confuse local and remote production server terminals
Example below is for Debian, but can likely be adapted for others with ease.
Below only commented output of the files is shown, you shall create the same files in the same
locations with a similar content for all this to work.
cat /etc/profile.d/custom_ps1.sh 
# export PS1="\[\033[41m\]\u@\h:\w\\$ <PROD> \[\033[0m\]"
#
cat /etc/motd 
#
# The programs included with the Debian GNU/Linux system are free software;
# the exact distribution terms for each program are described in the
# individual files in /usr/share/doc/*/copyright.
#
# Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
# permitted by applicable law.
#
#>>>>>>>>>>>>>>>>>>> THIS IS A PRODUCTION SERVER <<<<<<<<<<<<<<<<<<<<<
#>>>>>>>> CHECK YOUR COMMANDS MULTIPLE TIMES BEFRORE RUNNING <<<<<<<<<

root@server-name:~# <PROD> 
logout
Connection to server-name closed.

more stuff is coming soon