seahorse writes null bytes onto the end of .ssh/authorized_keys

Bug #257415 reported by Anders Kaseorg
4
Affects Status Importance Assigned to Milestone
seahorse
Fix Released
Low
seahorse (Ubuntu)
Fix Released
Undecided
Ubuntu Desktop Bugs

Bug Description

Binary package hint: seahorse

In seahorse, Remote → Configure Key for Secure Shell… will copy an SSH public key to a remote host’s .ssh/authorized_keys. However, it also appends extra null bytes to the end of the file:

$ xxd .ssh/authorized_keys
0000000: 7373 682d 7273 6120 4141 4141 4233 4e7a ssh-rsa AAAAB3Nz
0000010: 6143 3179 6332 4541 4141 4142 4977 4141 aC1yc2EAAAABIwAA

0000170: 6c31 6f49 3559 3973 3851 3d3d 2061 6e64 l1oI5Y9s8Q== and
0000180: 6572 7340 6261 6c61 6e63 6564 2d74 7265 ers@balanced-tre
0000190: 650a 0000 0000 0000 0000 0000 0000 0000 e...............
00001a0: 0000 0000 0000 0000 0000 0000 0000 0000 ................
00001b0: 0000 0000 0000 0000 0000 0000 0000 0000 ................
00001c0: 0000 0000 0000 0000 0000 0000 0000 0000 ................
00001d0: 0000 0000 0000 0000 0000 0000 0000 0000 ................
00001e0: 0000 0000 0000 0000 0000 0000 0000 0000 ................
00001f0: 0000 0000 0000 0000 0000 0000 0000 0000 ................
$

I’m using seahorse 2.23.6-0ubuntu2 on Intrepid amd64.

Related branches

Revision history for this message
Andreas Moog (ampelbein) wrote :

Thanks for reporting this bug. I filed an Upstreambugreport which you can track here:
http://bugzilla.gnome.org/show_bug.cgi?id=549747

Changed in seahorse:
status: New → Confirmed
Changed in seahorse:
status: Unknown → Confirmed
C de-Avillez (hggdh2)
Changed in seahorse:
importance: Undecided → Medium
status: Confirmed → Triaged
Andreas Moog (ampelbein)
Changed in seahorse:
status: Triaged → Fix Committed
James Westby (james-w)
Changed in seahorse:
assignee: nobody → desktop-bugs
importance: Medium → Undecided
status: Fix Committed → Triaged
Revision history for this message
Andreas Moog (ampelbein) wrote :

debdiff attached:

seahorse (2.23.90-0ubuntu2) intrepid; urgency=low

  * Added patch to prevent Nullbytes being written to .authorized_keys (lp: #257415)
  * Added patch to Clear passwords-tab before refilling (lp: #256679)

 -- Andreas Moog <email address hidden> Fri, 29 Aug 2008 02:52:00 +0200

Andreas Moog (ampelbein)
Changed in seahorse:
status: Triaged → Fix Committed
Changed in seahorse:
status: Confirmed → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package seahorse - 2.23.91-0ubuntu1

---------------
seahorse (2.23.91-0ubuntu1) intrepid; urgency=low

  * New upstream version:
    - Fix copying keys to the clipboard. (lp: #230537)
    - Fix double free crash when importing keys.
    - Fix crasher when deleting a key.
    - Don't add extra null bytes to SSH authorized_keys and similar files.
      (lp: #257415)
    - Documentation fixes.
    - Don't repeatedly load gnome-keyring items. (lp: #256679)
    - Make help button in 'First Time Options' work proprely.
    - Better wording for options in PGP key dialogs.

 -- Sebastien Bacher <email address hidden> Wed, 03 Sep 2008 22:05:21 +0200

Changed in seahorse:
status: Fix Committed → Fix Released
Changed in seahorse:
importance: Unknown → Low
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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