"Setup key for ssh" creates files with wrong permissions.

Bug #326087 reported by Jonas Finnemann Jensen
4
Affects Status Importance Assigned to Milestone
seahorse
Fix Released
Critical
seahorse (Ubuntu)
Fix Released
Low
Ubuntu Desktop Bugs

Bug Description

Binary package hint: seahorse

I've used SeaHorse to export a public ssh key to a server running SunOS 5.9 with OpenSSH_3.1p1, I don't know exactly how the server was configured... But when I tried to connect the server afterwards using $ ssh server.address.com
I was still promted for my password...

However, if I logged on and chmod 0644 .ssh/autherized_keys then it would work fine next time I logged on... Shouldn't SeaHorse chmod 0644 the autherized_keys be default, when configuring a server to accept a public ssh key...
I think ssh on the server refused to accept the public key because it did have the correct rights...

By the way, I don't know if I'm reporting this the right place, or if this is a valid bug... If not just make it invalid...

Related branches

Revision history for this message
Sebastien Bacher (seb128) wrote :

thank you for your bug report, what mdoe was set for the file and what ubuntu version do you use?

Changed in seahorse:
assignee: nobody → desktop-bugs
importance: Undecided → Low
status: New → Incomplete
Revision history for this message
Jonas Finnemann Jensen (jopsen) wrote :

SeaHorse 2.24.1 under Ubuntu 8.10, but I had a similar issue with Ubuntu 7.10, never resolved it, as I didn't try to chmod 0644 the file.

Before chmod:
jopsen@dolomit:~/.ssh> ls -@
-rw-rw-r-- 1 jopsen jopsen 407 Feb 12 12:36 authorized_keys

After chmod:
jopsen@dolomit:~/.ssh> chmod 0644 authorized_keys
jopsen@dolomit:~/.ssh> ls -@
-rw-r--r-- 1 jopsen jopsen 407 Feb 12 12:36 authorized_keys

I don't know if this is an issue specific to this SSH server, the configuration of this server or similar... I've not used SSH that much...

Revision history for this message
Andreas Moog (ampelbein) wrote :
Changed in seahorse (Ubuntu):
status: Incomplete → Fix Committed
summary: - Shouldn't "Configure key for SSH" chmod 0644 autherized_keys?
+ "Setup key for ssh" creates files with wrong permissions.
Changed in seahorse:
status: Unknown → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

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

---------------
seahorse (2.26.1-0ubuntu1) jaunty; urgency=low

  * New upstream version: (LP: #360225)
    - PGP UIDs display in order reported by key server, and fix
      parsing of HKP PGP search UIDs. [Adam Schreiber] (LP: #351948)
    - Fix problem opening preferences window twice. [Adam Schreiber]
      (LP: #344696)
    - Set authorized_keys properly when sending SSH keys to a
      remote system. [Andreas Moog, Stef Walter] (LP: #326087)
    - Fix crash when entering hkp: url manually. [Stef Walter]
      (LP: #341983)
  * debian/patches
    - updated 80_autoconf.patch to apply to new version

 -- Andreas Moog <email address hidden> Sun, 12 Apr 2009 23:36:57 +0200

Changed in seahorse (Ubuntu):
status: Fix Committed → Fix Released
Changed in seahorse:
importance: Unknown → Critical
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.