Public bug reported:

running 'ssh-import-id <id>' more than once for the same user will result in 
failure on runs other than the first.
this seems wrong.

$ rm -f ~/.ssh/authorized_keys
$ ssh-import-id smoser
2014-02-26 18:24:39,340 INFO Authorized key ['2048', 
'e3:66:78:32:7f:84:81:72:38:81:01:63:74:82:e3:6a', 'smoser@brickies-canonical', 
'(RSA)']
2014-02-26 18:24:39,343 INFO Authorized key ['2048', 
'21:ea:6f:5d:f9:32:8a:da:98:77:70:22:48:94:b6:42', 'smoser@bart-canonical', 
'(RSA)']
2014-02-26 18:24:39,347 INFO Authorized key ['2048', 
'7b:e2:5e:1a:c0:ac:a7:17:51:0b:41:4b:37:ad:05:b2', 'smoser@kaypeah', '(RSA)']
2014-02-26 18:24:39,347 INFO Authorized [3] SSH keys
$ echo $?
0
$ ssh-import-id smoser
2014-02-26 18:24:53,143 INFO Already authorized ['2048', 
'e3:66:78:32:7f:84:81:72:38:81:01:63:74:82:e3:6a', 'smoser@brickies-canonical', 
'(RSA)']
2014-02-26 18:24:53,148 INFO Already authorized ['2048', 
'21:ea:6f:5d:f9:32:8a:da:98:77:70:22:48:94:b6:42', 'smoser@bart-canonical', 
'(RSA)']
2014-02-26 18:24:53,153 INFO Already authorized ['2048', 
'7b:e2:5e:1a:c0:ac:a7:17:51:0b:41:4b:37:ad:05:b2', 'smoser@kaypeah', '(RSA)']
2014-02-26 18:24:53,154 INFO Authorized [0] SSH keys
2014-02-26 18:24:53,154 ERROR No matching keys found for [smoser]
$ echo $?
1
$ dpkg-query --show ssh-import-id
ssh-import-id   3.20-0ubuntu1

ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: ssh-import-id 3.20-0ubuntu1
ProcVersionSignature: User Name 3.13.0-12.32-generic 3.13.4
Uname: Linux 3.13.0-12-generic x86_64
ApportVersion: 2.13.2-0ubuntu5
Architecture: amd64
Date: Wed Feb 26 18:23:57 2014
Ec2AMI: ami-00000794
Ec2AMIManifest: FIXME
Ec2AvailabilityZone: nova
Ec2InstanceType: m1.small
Ec2Kernel: aki-00000548
Ec2Ramdisk: ari-00000548
PackageArchitecture: all
ProcEnviron:
 TERM=screen
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: ssh-import-id
UpgradeStatus: No upgrade log present (probably fresh install)

** Affects: ssh-import-id (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug ec2-images trusty

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1285295

Title:
  ssh-import-id exits fail (1) if all keys already authorized

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ssh-import-id/+bug/1285295/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to