Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'View international characters in SSH sessions' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
View international characters in SSH sessions
Authored by: wallybear on Jul 14, '09 04:13:46PM

I understand that giving a single command line can be simpler for novices, but it could be dangerous if wrongly typed (just imagine if they write ">" instead of ">>").

I presume it's better to give the following instructions:

On the server, add the following two lines at the end of /etc/sshd_config:

# Accept language environment variables
AcceptEnv LANG LC_*


On the client, add the following two lines at the end of /etc/ssh_config:

# Send language environment variables
SendEnv LANG LC_*

( You will need superuser privileges to edit those files:
use
sudo nano /etc/sshd_config
or
sudo nano /etc/ssh_config
)



[ Reply to This | # ]
View international characters in SSH sessions
Authored by: Soliman on Jul 16, '09 04:22:21AM
Even better, do the last part locally in your ${HOME}/.ssh/config No need for sudo and no perturbation for other users...

---
Sylvain

[ Reply to This | # ]

View international characters in SSH sessions
Authored by: Aikinai on Oct 10, '09 11:54:27AM
Oh, I just noticed this hint went up awhile ago!
Anyway, thanks a lot for the extra detail wallybear. I was trying to keep the hint easy for anyone to use, but you're right, I should have just said what those commands were doing too.

[ Reply to This | # ]