DEV Community

Discussion on: Customizing Your Shell Prompt for Productivity

ikirker profile image
Ian Kirker

Well, at that point you're already doing remote code execution manually by logging in. But, yes, the default is to not accept any environment variables, so it would only work if you already have the ability to alter the SSH daemon configuration. If you have that, you already have sufficient permissions to do almost anything to the machine anyway.

I guess a use case would be if you were deploying an OS image and didn't want to bake your prompt into it, but still wanted it available.