4 ms·
How can you preload in the shell? Isn't it launched by sshd, which you can't configure?
by icebraining 9y ago
How can you preload in the shell? Isn't it launched by sshd, which you can't configure?
- jwilk 9y agoYou can't configure which shell is run, but you can usually configure the shell (in ~/.profile or a similar file). Or, if the server is running Debian, you can set environment variables the .pam_environment file: https://bugs.debian.org/761600 https://bugs.debian.org/761600
- icebraining 9y agoI don't think .profile runs before the shell is spawned, does it? The .pam_environment one is interesting, thanks for the link.
- lvh 9y agoYou can still exec into a new shell, for example.