Re:Run Commands, the 'rc' in '.bashrc'
by jeremyjh on Sunday September 01, 2019 @10:05PM
(#20856268)
Why wouldn't you put that in ~/.bashrc ?
[ Parent
| on HN ]
Re:Run Commands, the 'rc' in '.bashrc'
by syncsynchalt on Monday September 02, 2019 @05:23PM
(#20861866)
The ec2-user is shared by all users who might login; our EC2 hosts usually only last a few minutes/hours and are only accessed during debugging or extraordinary circumstances.
Re:Run Commands, the 'rc' in '.bashrc'
by jeremyjh on Monday September 02, 2019 @06:56PM
(#20862320)
The .ssh/rc file goes on the server though, so you’d still have that problem.
What if you don't have a home directory on an ephemeral server?
Then you won’t have anywhere to store ~/.ssh/rc, and the version you’d put in /etc would still unfortunately apply to all users.
Your ssh rc is stored locally, to be executed on remote servers, right? Locally you have a home dir, but you don't on the remote.