| ▲ | fragmede a day ago | |||||||
setup LocalCommand, in ~/.ssh/config, so your config files get copied to every server you connect to, so you have all your aliases and scripts. | ||||||||
| ▲ | rft a day ago | parent | next [-] | |||||||
I intentionally avoid this, especially if I am not the only one connecting to a server. I see potentially breaking others' expectations for my convenience as a clear downside. Plus there is a level of paranoia there, I might have unintentionally included a credential in some config that gets copied over. That potentially increases the blast radius of a server compromise beyond what is strictly required for that specific server. I might copy over some scripts into a directory not in $PATH, easy enough to add it to my shell session if needed, CTRL+R helps as well. | ||||||||
| ||||||||
| ▲ | mmh0000 19 hours ago | parent | prev [-] | |||||||
I’m not saying yours does, but be careful with LocalCommand, it will often break rsync and other tools that use ssh behind the scenes. | ||||||||