[Bug 1638338] Re: Can not ssh with tr_TR.UTF-8 locales (Bad configuration options)
Onur Güzel
1638338 at bugs.launchpad.net
Tue Nov 22 09:32:48 UTC 2016
I have encountered this bug today. You can reproduce it by launching ssh
in Turkish locale environment:
LC_ALL=tr_TR.UTF8 ssh user at example.com
Ubuntu version is 16.10, and openssh-client version is 1:7.3p1-1. I
guess the client converts parameters in config files to lowercase when
parsing and gives error because both GSSAPIAuthentication and
GSSAPIDelegateCredentials parameters has "I" character.
Turkish have two separate "i" character dotted and dotless. Per the
Unicode standard, our lowercase "i" becomes "İ" (U+0130 "Latin Capital
Letter I With Dot Above") when it moves to uppercase. Similarly, our
uppercase "I" becomes "ı" (U+0131 "Latin Small Letter Dotless I") when
it moves to lowercase.
For additional info, you can check out the links below:
http://www.moserware.com/2008/02/does-your-code-pass-turkey-test.html
https://blog.codinghorror.com/whats-wrong-with-turkey/
http://mattryall.net/blog/2009/02/the-infamous-turkish-locale-bug
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to openssh in Ubuntu.
https://bugs.launchpad.net/bugs/1638338
Title:
Can not ssh with tr_TR.UTF-8 locales (Bad configuration options)
Status in openssh package in Ubuntu:
Incomplete
Bug description:
I can not ssh to any host with Turkish locales.
What I expected to happen:
I expected that 'ssh some_host' command would successfully run.
What actually happened
'ssh some_host' command failed with an error.
Steps to produce:
1. Open a terminal
2. Run LANG=tr_TR.UTF-8 ssh some_host
If I run ssh with tr_TR.UTF-8 locale, the first error I get is:
$HOME/.ssh/config: line 7: Bad configuration option: Identityfile
$HOME/.ssh/config: terminating, 1 bad configuration options
If I commend IdentityFile option from $HOME/.ssh/config file and re-
run the command, I get this:
debug1: Reading configuration data ~/.ssh/config
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
/etc/ssh/ssh_config: line 55: Bad configuration option: gssapIauthentication
/etc/ssh/ssh_config: line 56: Bad configuration option: gssapIdelegatecredentials
/etc/ssh/ssh_config: terminating, 2 bad configuration options
If I commend GSSAPIAuthentication and GSSAPIDelegateCredentials
option, I can ssh to a host.
So to ssh to a host with tr_TR.UTF-8 locale, one must commend out
IdentityFile, if it is used, GSSAPIAuthentication and
GSSAPIDelegateCredentials optons.
Workaround:
LC_ALL=C ssh some_host
LC_ALL=C apt-cache policy openssh-client
openssh-client:
Installed: 1:7.3p1-1
Candidate: 1:7.3p1-1
Version table:
*** 1:7.3p1-1 500
500 http://archive.ubuntu.com/ubuntu yakkety/main amd64 Packages
100 /var/lib/dpkg/status
LC_ALL=C lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 16.10
Release: 16.10
Codename: yakkety
ProblemType: Bug
DistroRelease: Ubuntu 16.10
Package: openssh-client 1:7.3p1-1
ProcVersionSignature: Ubuntu 4.8.0-26.28-generic 4.8.0
Uname: Linux 4.8.0-26-generic x86_64
ApportVersion: 2.20.3-0ubuntu8
Architecture: amd64
CurrentDesktop: Unity
Date: Tue Nov 1 19:37:35 2016
InstallationDate: Installed on 2016-10-23 (9 days ago)
InstallationMedia: Ubuntu 16.10 "Yakkety Yak" - Release amd64 (20161012.2)
RelatedPackageVersions:
ssh-askpass N/A
libpam-ssh N/A
keychain N/A
ssh-askpass-gnome N/A
SSHClientVersion: OpenSSH_7.3p1 Ubuntu-1, OpenSSL 1.0.2g 1 Mar 2016
SourcePackage: openssh
UpgradeStatus: No upgrade log present (probably fresh install)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/openssh/+bug/1638338/+subscriptions
More information about the foundations-bugs
mailing list