1) it usually doesn't have sshd
2) you change would be thrown away at nearest container restart or migration.
The only way for it to persist is to do the right thing, i.e. apply the change where you should and have the container rebuilt.