Weird key bindings in vi in an ssh session from 64bit to 32bit

Bug #1050663 reported by Mitch Claborn
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
vim (Ubuntu)
Expired
Medium
Unassigned

Bug Description

I support a number of systems remotely, and often find myself using vi in an ssh session to edit various files. In some cases, but not all, when I press the up arrow (in insert mode) I get a capital letter A and a new line instead of the cursor moving up. Other arrow keys have similar issues. This only seems to be a problem when in insert mode.

My system is 12.04 64 bit. When I connect to a remote system that is 64 bit it works fine, but when I connect to a remote 32 bit system, I have the described problem.

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: openssh-client 1:5.9p1-5ubuntu1
ProcVersionSignature: Ubuntu 3.2.0-30.48-generic 3.2.27
Uname: Linux 3.2.0-30-generic x86_64
NonfreeKernelModules: nvidia
ApportVersion: 2.0.1-0ubuntu13
Architecture: amd64
Date: Thu Sep 13 18:12:18 2012
ExecutablePath: /usr/bin/ssh
InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Release amd64 (20120425)
RelatedPackageVersions:
 ssh-askpass N/A
 libpam-ssh N/A
 keychain N/A
 ssh-askpass-gnome 1:5.9p1-5ubuntu1
SSHClientVersion: OpenSSH_5.9p1 Debian-5ubuntu1, OpenSSL 1.0.1 14 Mar 2012
SourcePackage: openssh
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Mitch Claborn (mitch-news) wrote :
Revision history for this message
Clint Byrum (clint-fewbar) wrote :

Hi Mitch. Thats very interesting, and thank you for taking the time to file a bug report.

Can you please paste the output of 'ssh -vv ...' to one of the problem systems? Also if could you share what terminal you are running in (such as konsole, Terminator, putty, the raw virtual terminals, etc.) and the value of $TERM? Thanks.

Changed in openssh (Ubuntu):
status: New → Incomplete
importance: Undecided → Medium
Revision history for this message
Mitch Claborn (mitch-news) wrote :
Download full text (8.5 KiB)

I am using gnome-terminal.
$TERM=xterm (on both local and remote system)

ssh -vv 192.168.5.211

OpenSSH_5.9p1 Debian-5ubuntu1, OpenSSL 1.0.1 14 Mar 2012
debug1: Reading configuration data /home/mclaborn/.ssh/config
debug1: /home/mclaborn/.ssh/config line 1: Applying options for *
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug2: ssh_connect: needpriv 0
debug1: Connecting to 192.168.5.211 [192.168.5.211] port 22.
debug1: Connection established.
debug1: identity file /home/mclaborn/.ssh/id_rsa type 1
debug1: Checking blacklist file /usr/share/ssh/blacklist.RSA-2048
debug1: Checking blacklist file /etc/ssh/blacklist.RSA-2048
debug1: identity file /home/mclaborn/.ssh/id_rsa-cert type -1
debug1: identity file /home/mclaborn/.ssh/id_dsa type -1
debug1: identity file /home/mclaborn/.ssh/id_dsa-cert type -1
debug1: identity file /home/mclaborn/.ssh/id_ecdsa type -1
debug1: identity file /home/mclaborn/.ssh/id_ecdsa-cert type -1
debug1: Remote protocol version 2.0, remote software version OpenSSH_5.9p1 Debian-5ubuntu1
debug1: match: OpenSSH_5.9p1 Debian-5ubuntu1 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_5.9p1 Debian-5ubuntu1
debug2: fd 3 setting O_NONBLOCK
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug2: kex_parse_kexinit: ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1
debug2: kex_parse_kexinit: <email address hidden>,<email address hidden>,<email address hidden>,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,<email address hidden>,<email address hidden>,<email address hidden>,<email address hidden>,ssh-rsa,ssh-dss
debug2: kex_parse_kexinit: aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,<email address hidden>
debug2: kex_parse_kexinit: aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,<email address hidden>
debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,<email address hidden>,hmac-sha2-256,hmac-sha2-256-96,hmac-sha2-512,hmac-sha2-512-96,hmac-ripemd160,<email address hidden>,hmac-sha1-96,hmac-md5-96
debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,<email address hidden>,hmac-sha2-256,hmac-sha2-256-96,hmac-sha2-512,hmac-sha2-512-96,hmac-ripemd160,<email address hidden>,hmac-sha1-96,hmac-md5-96
debug2: kex_parse_kexinit: <email address hidden>,zlib,none
debug2: kex_parse_kexinit: <email address hidden>,zlib,none
debug2: kex_parse_kexinit:
debug2: kex_parse_kexinit:
debug2: kex_parse_kexinit: first_kex_follows 0
debug2: kex_parse_kexinit: reserved 0
debug2: kex_parse_kexinit: ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1
debug2: kex_parse_kexinit: ssh-rsa,ssh-dss,ecdsa-sha...

Read more...

Revision history for this message
Mitch Claborn (mitch-news) wrote :

More info: it is not 32 bit systems with which I have a problem, but systems that only have vim-tiny and not vim. The systems I was having trouble with are desktop systems which only install vim-tiny by default. Installing vim fixed it, for both 32 and 64 bit systems.

affects: openssh (Ubuntu) → vim (Ubuntu)
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for vim (Ubuntu) because there has been no activity for 60 days.]

Changed in vim (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related questions

Remote bug watches

Bug watches keep track of this bug in other bug trackers.