Bug 2084

Summary: "no such identity" error messages.
Product: Portable OpenSSH Reporter: Michael Tust <tustm>
Component: sshAssignee: Assigned to nobody <unassigned-bugs>
Status: CLOSED FIXED    
Severity: normal CC: bugs, darose, dtucker
Priority: P5    
Version: 6.2p1   
Hardware: Other   
OS: Other   
Bug Depends on:    
Bug Blocks: 2035    
Attachments:
Description Flags
Identityfile warnings fixes none

Description Michael Tust 2013-04-04 01:00:10 AEDT
badger:~
user1> ssh bazinga
no such identity: /home/user1/.ssh/id_dsa: No such file or directory
no such identity: /home/user1/.ssh/id_ecdsa: No such file or directory
bazinga:~

This first appeared after we upgraded a client to OpenSSH 6.2p1. Consistent on SunOS 9, AIX 6.1 and Oracle Enterprise Linux 4.8, 5.7 and 6.3.

I do not particularly care that these alternate keys do not exist.  Suggest moving these messages to debug level 1,2 or 3.
Comment 1 bugs 2013-04-05 01:16:18 AEDT
I'can confirm this for Archlinux:

https://bugs.archlinux.org/index.php?do=details&action=details.addvote&task_id=34490

This should be an "INFO". Or nothing at all? Having no keys stored is as normal as using keys.

Thank you
Comment 2 Darren Tucker 2013-04-05 13:51:34 AEDT
Created attachment 2238 [details]
Identityfile warnings fixes

Sorry about that.  We actually had this fixed but neglected to pull the changes into the portable version.

We're going to do a 6.2p2 release in a couple of weeks to pick up this change and anything else that crops up, in the mean time you can apply the attached patch which contains the following two changes, which should fix it (or grab a snapshot tomorrow, which will also have it).

   - dtucker@cvs.openbsd.org 2013/02/17 23:16:57
     [readconf.c ssh.c readconf.h sshconnect2.c]
     Keep track of which IndentityFile options were manually supplied and which
     were default options, and don't warn if the latter are missing.
     ok markus@

   - dtucker@cvs.openbsd.org 2013/02/22 04:45:09
     [ssh.c readconf.c readconf.h]
     Don't complain if IdentityFiles specified in system-wide configs are
     missing.  ok djm, deraadt.
Comment 3 Darren Tucker 2013-05-10 14:01:08 AEST
OK, the fix has been applied to both HEAD and the 6.2 branch:

http://anoncvs.mindrot.org/index.cgi/openssh/readconf.c?revision=1.174.6.1&view=markup&pathrev=V_6_2
http://anoncvs.mindrot.org/index.cgi/openssh/readconf.c?view=log&pathrev=MAIN

and will be in the 6.2p2 and subsquent releases.

Thanks.
Comment 4 Damien Miller 2016-08-02 10:41:37 AEST
Close all resolved bugs after 7.3p1 release