News for hackers. Stuff that matters.
Re:Using a single AWS account is a serious risk by eropple on Friday August 07, 2015 @08:13PM (#10025781)
Visual indications are so great, aren't they? I do it with terminals, too; prod servers get obnoxious red-background prompts. (Root terms on all my machines look different from unprivileged ones, too.)
Re:Using a single AWS account is a serious risk by tabio on Friday August 07, 2015 @11:24PM (#10026205)
Wow, I can't remember the last time I ran a shell directly on a prod machine. The very thought feels so dirty now.
Re:Using a single AWS account is a serious risk by eropple on Saturday August 08, 2015 @02:21AM (#10026516)
When you inherit your environment and are whipping it into shape, shit happens.
Re:Using a single AWS account is a serious risk by zaroth on Friday August 07, 2015 @11:44PM (#10026245)
Whether it's shell literally, or "shell" as in, the window from which you ultimately perform shell-like things, there's still a place you perform these tasks and knowing when you are in simulation or actual is an important state to track.
Re:Using a single AWS account is a serious risk by jebblue on Saturday August 08, 2015 @11:42AM (#10027552)
How do you know what's really going on on those machines and in their respective environments assuming they are geographically distinct?
Re:Using a single AWS account is a serious risk by tomschlick on Saturday August 08, 2015 @05:20AM (#10026769)
Any advice/tutorials on how to set this up? Ideally I'd like just that ssh session to change the text to red for prod boxes but then go back to my normal iTerm theme after exit...
Re:Using a single AWS account is a serious risk by def- on Saturday August 08, 2015 @06:38AM (#10026884)
In the .bashrc/.zshrc of the remote machine add this:

    echo '\033]11;#440000\007'
On the local machine add this to reset the terminal color:

    ssh () {/usr/bin/ssh "$@"; echo '\033]11;#000000\007'}
Re:Using a single AWS account is a serious risk by eru on Saturday August 08, 2015 @05:44AM (#10026803)
You can muck around with your bashrc, if you use that shell.
Re:Using a single AWS account is a serious risk by icelancer on Friday August 07, 2015 @09:28PM (#10025969)
Hmm good idea. I haven't had any issue with it but it's trivial to change background colors. Probably not a bad idea. Thanks for the tip!