I have some aliases for ssh, example:
alias buildWork="ssh work '~/build_app'"
Problem that ssh pass some variables like $LC_CTYPE
that cause errors, how to prevent that and use server configs.
I have some aliases for ssh, example:
alias buildWork="ssh work '~/build_app'"
Problem that ssh pass some variables like $LC_CTYPE
that cause errors, how to prevent that and use server configs.
Accepted answer is correct, but, if you don't want to change your config files, you can override specific locale on the command line
It sounds like your SSH client is configured to forward the locale settings. You can prevent this by altering your configuration (the global file is typically
/etc/ssh/ssh_config
):Alternatively you can change the configuration of the server, by editing
/etc/ssh/sshd_config
on the remote machine (note the d insshd_config
):In short:
See this answer for details.