Re: ssh-add: June 26 snap cannot read an id_rsa file

2014-06-28 Thread Josh Grosse
I noticed this:


revision 1.111
date: 2014/06/27 18:50:39;  author: markus;  state: Exp;  lines: +5 -5;  
commitid: 9HzmkMLFofU34iy0;
fix loading of private keys


Confirming this resolved the issue.  Thank you, markus!



Re: ssh-add: June 26 snap cannot read an id_rsa file

2014-06-27 Thread Christian Weisgerber
On 2014-06-27, Josh Grosse j...@jggimi.homeip.net wrote:

 I just updated from a June 17 to June 26 snapshot.  The ssh-add utility
 now fails immediately: [...]

 Between these two snapshots there was a major bump for libcrypto from 28.0
 to 29.0, but that may not be relevant.

It's most likely fallout from the ssh changes on June 23:

  New key API: refactor key-related functions to be more library-like,
  existing API is offered as a set of wrappers.

-- 
Christian naddy Weisgerber  na...@mips.inka.de



Re: ssh-add: June 26 snap cannot read an id_rsa file

2014-06-27 Thread Kent Fritz
On Fri, Jun 27, 2014 at 4:29 AM, Christian Weisgerber
na...@mips.inka.de wrote:
 On 2014-06-27, Josh Grosse j...@jggimi.homeip.net wrote:

 I just updated from a June 17 to June 26 snapshot.  The ssh-add utility
 now fails immediately: [...]

 Between these two snapshots there was a major bump for libcrypto from 28.0
 to 29.0, but that may not be relevant.

 It's most likely fallout from the ssh changes on June 23:

   New key API: refactor key-related functions to be more library-like,
   existing API is offered as a set of wrappers.

 --
 Christian naddy Weisgerber  na...@mips.inka.de

Seeing the same here.  I tested re-creating my keys, and the problem
seems to be with password.  With password, it fails; without, it
works.



Re: ssh-add: June 26 snap cannot read an id_rsa file

2014-06-27 Thread Josh Grosse

On 2014-06-27 08:21, Kent Fritz wrote:

On Fri, Jun 27, 2014 at 4:29 AM, Christian Weisgerber
na...@mips.inka.de wrote:



It's most likely fallout from the ssh changes on June 23:


Yes, there were significant revisions, and they are integrated, as I
cannot back off ssh-add.c r1.110 alone.

I'd mucked about with ktrace output diffs to see if I could determine 
where the

branch in logic occurred, but didn't really have the time to investigate
fully.


Seeing the same here.  I tested re-creating my keys, and the problem
seems to be with password.  With password, it fails; without, it
works.


If I didn't have passphrases, I wouldn't use ssh-add. :)



Re: ssh-add: June 26 snap cannot read an id_rsa file

2014-06-27 Thread Kent Fritz
On Fri, Jun 27, 2014 at 6:12 AM, Josh Grosse j...@jggimi.homeip.net wrote:
 On 2014-06-27 08:21, Kent Fritz wrote:
 Seeing the same here.  I tested re-creating my keys, and the problem
 seems to be with password.  With password, it fails; without, it
 works.


 If I didn't have passphrases, I wouldn't use ssh-add. :)

Yes, obviously!

ssh-keygen -p seems to have a problem, but works regardlesss:

$ ssh-keygen -p
Enter file in which the key is (/home/kent/.ssh/id_rsa):
key_load_private: invalid format
Enter old passphrase:
Key has comment 'rsa w/o comment'
Enter new passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved with the new passphrase.



ssh-add: June 26 snap cannot read an id_rsa file

2014-06-26 Thread Josh Grosse
I just updated from a June 17 to June 26 snapshot.  The ssh-add utility
now fails immediately:

$ ssh-add
Cannot parse /home/josh/.ssh/id_rsa: invalid format

If I restore the /usr/bin/ssh-add program from the June 17 snap, it works
fine.

Between these two snapshots there was a major bump for libcrypto from 28.0
to 29.0, but that may not be relevant.


OpenBSD 5.5-current (GENERIC.MP) #208: Thu Jun 26 08:55:11 MDT 2014
dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC.MP
cpu0: Intel(R) Atom(TM) CPU N270 @ 1.60GHz (GenuineIntel 686-class) 1.60 GHz
cpu0: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,NXE,SSE3,DTES64,MWAIT,DS-CPL,EST,TM2,SSSE3,xTPR,PDCM,MOVBE,LAHF,PERF
real mem  = 1064464384 (1015MB)
avail mem = 1034616832 (986MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 04/18/11, BIOS32 rev. 0 @ 0xf0010, SMBIOS 
rev. 2.5 @ 0xf0720 (30 entries)
bios0: vendor American Megatrends Inc. version 1601 date 04/18/2011
bios0: ASUSTeK Computer INC. 1005HA
acpi0 at bios0: rev 0
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP APIC MCFG OEMB HPET SSDT
acpi0: wakeup devices P0P2(S4) P0P1(S4) HDAC(S4) P0P4(S4) P0P8(S4) P0P5(S4) 
P0P7(S4) P0P9(S4) P0P6(S4)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges
cpu0: apic clock running at 133MHz
cpu0: mwait min=64, max=64, C-substates=0.2.2.0.2, IBE
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Intel(R) Atom(TM) CPU N270 @ 1.60GHz (GenuineIntel 686-class) 1.60 GHz
cpu1: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,NXE,SSE3,DTES64,MWAIT,DS-CPL,EST,TM2,SSSE3,xTPR,PDCM,MOVBE,LAHF,PERF
ioapic0 at mainbus0: apid 2 pa 0xfec0, version 20, 24 pins
ioapic0: misconfigured as apic 1, remapped to apid 2
acpimcfg0 at acpi0 addr 0xe000, bus 0-63
acpihpet0 at acpi0: 14318179 Hz
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 2 (P0P5)
acpiprt2 at acpi0: bus 1 (P0P7)
acpiprt3 at acpi0: bus -1 (P0P6)
acpiec0 at acpi0
acpicpu0 at acpi0: C2, C1, PSS
acpicpu1 at acpi0: C2, C1, PSS
acpitz0 at acpi0: critical temperature is 88 degC
acpibat0 at acpi0: BAT0 model 1005HA serial   type LION oem ASUS
acpiac0 at acpi0: AC unit online
acpiasus0 at acpi0
acpibtn0 at acpi0: LID_
acpibtn1 at acpi0: SLPB
acpibtn2 at acpi0: PWRB
bios0: ROM list: 0xc/0xec00!
cpu0: Enhanced SpeedStep 1600 MHz: speeds: 1600, 1333, 1067, 800 MHz
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
pchb0 at pci0 dev 0 function 0 Intel 82945GME Host rev 0x03
vga1 at pci0 dev 2 function 0 Intel 82945GME Video rev 0x03
intagp0 at vga1
agp0 at intagp0: aperture at 0xd000, size 0x1000
inteldrm0 at vga1
drm0 at inteldrm0
inteldrm0: 1024x600
wsdisplay0 at vga1 mux 1: console (std, vt100 emulation)
wsdisplay0: screen 1-5 added (std, vt100 emulation)
Intel 82945GM Video rev 0x03 at pci0 dev 2 function 1 not configured
azalia0 at pci0 dev 27 function 0 Intel 82801GB HD Audio rev 0x02: msi
azalia0: codecs: Realtek ALC269
audio0 at azalia0
ppb0 at pci0 dev 28 function 0 Intel 82801GB PCIE rev 0x02: apic 2 int 16
pci1 at ppb0 bus 4
ppb1 at pci0 dev 28 function 1 Intel 82801GB PCIE rev 0x02: apic 2 int 17
pci2 at ppb1 bus 2
athn0 at pci2 dev 0 function 0 Atheros AR9285 rev 0x01: apic 2 int 17
athn0: AR9285 rev 2 (1T1R), ROM rev 13, address 00:25:d3:8a:f6:b4
ppb2 at pci0 dev 28 function 3 Intel 82801GB PCIE rev 0x02: apic 2 int 19
pci3 at ppb2 bus 1
alc0 at pci3 dev 0 function 0 Attansic Technology L2C rev 0xc0: msi, address 
90:e6:ba:37:cf:5e
atphy0 at alc0 phy 0: F1 10/100/1000 PHY, rev. 11
uhci0 at pci0 dev 29 function 0 Intel 82801GB USB rev 0x02: apic 2 int 23
uhci1 at pci0 dev 29 function 1 Intel 82801GB USB rev 0x02: apic 2 int 19
uhci2 at pci0 dev 29 function 2 Intel 82801GB USB rev 0x02: apic 2 int 18
uhci3 at pci0 dev 29 function 3 Intel 82801GB USB rev 0x02: apic 2 int 16
ehci0 at pci0 dev 29 function 7 Intel 82801GB USB rev 0x02: apic 2 int 23
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 Intel EHCI root hub rev 2.00/1.00 addr 1
ppb3 at pci0 dev 30 function 0 Intel 82801BAM Hub-to-PCI rev 0xe2
pci4 at ppb3 bus 5
ichpcib0 at pci0 dev 31 function 0 Intel 82801GBM LPC rev 0x02: PM disabled
ahci0 at pci0 dev 31 function 2 Intel 82801GBM AHCI rev 0x02: msi, AHCI 1.1
scsibus1 at ahci0: 32 targets
sd0 at scsibus1 targ 0 lun 0: ATA, ST9160314AS, 0002 SCSI3 0/direct fixed 
naa.5000c50019076592
sd0: 152627MB, 512 bytes/sector, 312581808 sectors
usb1 at uhci0: USB revision 1.0
uhub1 at usb1 Intel UHCI root hub rev 1.00/1.00 addr 1
usb2 at uhci1: USB revision 1.0
uhub2 at usb2 Intel UHCI root hub rev 1.00/1.00 addr 1
usb3 at uhci2: USB revision 1.0
uhub3 at usb3 Intel UHCI root hub rev 1.00/1.00 addr 1
usb4 at uhci3: USB revision 1.0
uhub4 at usb4 Intel