ssh-keygen opens NULL filename

Luc I. Suryo luc at suryo.com
Thu Oct 17 02:11:40 EST 2002


Hello,


I have no answer but it works on my system, used Forte C

11:07 nc1701[10005] ./ssh-keygen -t dsa -f /tmp/ssh_host_dsa_key -N ""
Generating public/private dsa key pair.
Your identification has been saved in /tmp/ssh_host_dsa_key.
Your public key has been saved in /tmp/ssh_host_dsa_key.pub.
The key fingerprint is:
64:11:a7:80:a3:ca:dd:06:a6:fe:b0:3b:b9:c3:53:c2 root at nc1701

11:07 nc1701[10006] uname -a
SunOS nc1701 5.8 Generic_108528-16 sun4u sparc SUNW,Ultra-30

some diff. is the OS, i use Solaris 8 and Martin's is Solaris 2.6
and teh compiler we use, gcc vs Sun Forte C


> On Wed, 16 Oct 2002, Darren Tucker wrote:
> 
> > Martin MOKREJ© wrote:
> > >   it's impossible to use -f option with ssh-keygen with version 3.5p1:
> > >
> > > $ ./ssh-keygen -t dsa -f /etc/ssh/ssh_host_dsa_key -N ""
> > > Generating public/private dsa key pair.
> > > open  failed: No such file or directory.
> > > Saving the key failed: .
> >
> > Can you provide some more details? (eg: OS & version, compiler &
> > version, configure options). I just tested 3.5p1 on Linux, which worked.
> 
> 
> SunOS pf-i400 5.6 Generic_105181-33 sun4u sparc SUNW,Ultra-30
> gcc version 3.0.4
> ./configure --prefix=/usr/local --with-kerberos4=/usr/athena
> --with-afs=/usr/afsws --with-tcp-wrappers
> --with-ssl-dir=/software/@sys/usr/openssl --without-rsh --disable-suid-ssh
> --with-privsep --with-zlib --with-pam
> 
> 
> > $ ./ssh-keygen -t dsa -f /tmp/ssh_host_dsa_key -N ""
> > Generating public/private dsa key pair.
> > Your identification has been saved in /tmp/ssh_host_dsa_key.
> > Your public key has been saved in /tmp/ssh_host_dsa_key.pub.
> > The key fingerprint is:
> > 8b:34:74:72:e4:ba:68:b3:69:dd:18:71:c1:4c:c5:02 dtucker at gate
> 
> bash-2.05b# ./ssh-keygen -t dsa -f /tmp/ssh_host_dsa_key -N ""
> Generating public/private dsa key pair.
> open  failed: No such file or directory.
> Saving the key failed: .
> bash-2.05b# truss ./ssh-keygen -t dsa -f /tmp/ssh_host_dsa_key -N ""
> execve("./ssh-keygen", 0xEFFFF988, 0xEFFFF9A8)  argc = 7
> resolvepath("/usr/lib/ld.so.1", "/usr/lib/ld.so.1", 1023) = 16
> open("/var/ld/ld.config", O_RDONLY)             Err#2 ENOENT
> open("/dev/zero", O_RDONLY)                     = 3
> mmap(0x00000000, 8192, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0xEF7B0000
> open("/usr/athena/lib/libkafs.so.0", O_RDONLY)  = 4
> fstat(4, 0xEFFFF05C)                            = 0
> mmap(0x00000000, 8192, PROT_READ|PROT_EXEC, MAP_PRIVATE, 4, 0) = 0xEF7A0000
> mmap(0x00000000, 204800, PROT_READ|PROT_EXEC, MAP_PRIVATE, 4, 0) = 0xEF760000
> mmap(0xEF78E000, 8696, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 4, 122880) = 0xEF78E000
> munmap(0xEF780000, 57344)                       = 0
> memcntl(0xEF760000, 32184, MC_ADVISE, 0x0003, 0, 0) = 0
> close(4)                                        = 0
> open("/usr/athena/lib/libresolv.so.2", O_RDONLY) Err#2 ENOENT
> open("/usr/local/lib/libresolv.so.2", O_RDONLY) Err#2 ENOENT
> open("/usr/lib/security/libresolv.so.2", O_RDONLY) Err#2 ENOENT
> open("/software/@sys/usr/lib/libresolv.so.2", O_RDONLY) Err#2 ENOENT
> open("/usr/ccs/lib/libresolv.so.2", O_RDONLY)   Err#2 ENOENT
> open("/usr/lib/libresolv.so.2", O_RDONLY)       = 4
> fstat(4, 0xEFFFF05C)                            = 0
> mmap(0xEF7A0000, 8192, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 4, 0) = 0xEF7A0000
> mmap(0x00000000, 139264, PROT_READ|PROT_EXEC, MAP_PRIVATE, 4, 0) = 0xEF730000
> mmap(0xEF74C000, 10075, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 4, 49152) = 0xEF74C000
> mmap(0xEF750000, 6588, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0xEF750000
> munmap(0xEF73E000, 57344)                       = 0
> memcntl(0xEF730000, 11548, MC_ADVISE, 0x0003, 0, 0) = 0
> close(4)                                        = 0
> open("/usr/athena/lib/libdes.so.1", O_RDONLY)   = 4
> fstat(4, 0xEFFFF05C)                            = 0
> mmap(0xEF7A0000, 8192, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 4, 0) = 0xEF7A0000
> mmap(0x00000000, 172032, PROT_READ|PROT_EXEC, MAP_PRIVATE, 4, 0) = 0xEF700000
> mmap(0xEF722000, 7144, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 4, 73728) = 0xEF722000
> mmap(0xEF724000, 24252, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0xEF724000
> munmap(0xEF714000, 57344)                       = 0
> memcntl(0xEF700000, 8864, MC_ADVISE, 0x0003, 0, 0) = 0
> close(4)                                        = 0
> open("/usr/athena/lib/libkrb.so.1", O_RDONLY)   = 4
> fstat(4, 0xEFFFF05C)                            = 0
> mmap(0xEF7A0000, 8192, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 4, 0) = 0xEF7A0000
> mmap(0x00000000, 344064, PROT_READ|PROT_EXEC, MAP_PRIVATE, 4, 0) = 0xEF6A0000
> mmap(0xEF6EA000, 15656, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 4, 237568) = 0xEF6EA000
> mmap(0xEF6EE000, 16528, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0xEF6EE000
> munmap(0xEF6DC000, 57344)                       = 0
> memcntl(0xEF6A0000, 38444, MC_ADVISE, 0x0003, 0, 0) = 0
> close(4)                                        = 0
> open("/usr/athena/lib/libz.so", O_RDONLY)       Err#2 ENOENT
> open("/usr/local/lib/libz.so", O_RDONLY)        Err#2 ENOENT
> open("/usr/lib/security/libz.so", O_RDONLY)     Err#2 ENOENT
> open("/software/@sys/usr/lib/libz.so", O_RDONLY) = 4
> fstat(4, 0xEFFFF05C)                            = 0
> mmap(0xEF7A0000, 8192, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 4, 0) = 0xEF7A0000
> mmap(0x00000000, 163840, PROT_READ|PROT_EXEC, MAP_PRIVATE, 4, 0) = 0xEF670000
> mmap(0xEF696000, 7120, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 4, 90112) = 0xEF696000
> munmap(0xEF688000, 57344)                       = 0
> memcntl(0xEF670000, 6124, MC_ADVISE, 0x0003, 0, 0) = 0
> close(4)                                        = 0
> open("/usr/athena/lib/libsocket.so.1", O_RDONLY) Err#2 ENOENT
> open("/usr/local/lib/libsocket.so.1", O_RDONLY) Err#2 ENOENT
> open("/usr/lib/security/libsocket.so.1", O_RDONLY) Err#2 ENOENT
> open("/software/@sys/usr/lib/libsocket.so.1", O_RDONLY) Err#2 ENOENT
> open("/usr/ccs/lib/libsocket.so.1", O_RDONLY)   Err#2 ENOENT
> open("/usr/lib/libsocket.so.1", O_RDONLY)       = 4
> fstat(4, 0xEFFFF05C)                            = 0
> mmap(0xEF7A0000, 8192, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 4, 0) = 0xEF7A0000
> mmap(0x00000000, 106496, PROT_READ|PROT_EXEC, MAP_PRIVATE, 4, 0) = 0xEF650000
> mmap(0xEF666000, 8185, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 4, 24576) = 0xEF666000
> mmap(0xEF668000, 388, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0xEF668000
> munmap(0xEF658000, 57344)                       = 0
> memcntl(0xEF650000, 12072, MC_ADVISE, 0x0003, 0, 0) = 0
> close(4)                                        = 0
> open("/usr/athena/lib/libnsl.so.1", O_RDONLY)   Err#2 ENOENT
> open("/usr/local/lib/libnsl.so.1", O_RDONLY)    Err#2 ENOENT
> open("/usr/lib/security/libnsl.so.1", O_RDONLY) Err#2 ENOENT
> open("/software/@sys/usr/lib/libnsl.so.1", O_RDONLY) Err#2 ENOENT
> open("/usr/ccs/lib/libnsl.so.1", O_RDONLY)      Err#2 ENOENT
> open("/usr/lib/libnsl.so.1", O_RDONLY)          = 4
> fstat(4, 0xEFFFF05C)                            = 0
> mmap(0xEF7A0000, 8192, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 4, 0) = 0xEF7A0000
> mmap(0x00000000, 614400, PROT_READ|PROT_EXEC, MAP_PRIVATE, 4, 0) = 0xEF580000
> mmap(0xEF606000, 36348, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 4, 483328) = 0xEF606000
> mmap(0xEF610000, 19416, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0xEF610000
> munmap(0xEF5F8000, 57344)                       = 0
> memcntl(0xEF580000, 70384, MC_ADVISE, 0x0003, 0, 0) = 0
> close(4)                                        = 0
> open("/usr/athena/lib/libc.so.1", O_RDONLY)     Err#2 ENOENT
> open("/usr/local/lib/libc.so.1", O_RDONLY)      Err#2 ENOENT
> open("/usr/lib/security/libc.so.1", O_RDONLY)   Err#2 ENOENT
> open("/software/@sys/usr/lib/libc.so.1", O_RDONLY) Err#2 ENOENT
> open("/usr/ccs/lib/libc.so.1", O_RDONLY)        Err#2 ENOENT
> open("/usr/lib/libc.so.1", O_RDONLY)            = 4
> fstat(4, 0xEFFFF05C)                            = 0
> mmap(0xEF7A0000, 8192, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 4, 0) = 0xEF7A0000
> mmap(0x00000000, 712704, PROT_READ|PROT_EXEC, MAP_PRIVATE, 4, 0) = 0xEF480000
> mmap(0xEF524000, 30396, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 4, 606208) = 0xEF524000
> mmap(0xEF52C000, 4304, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0xEF52C000
> munmap(0xEF516000, 57344)                       = 0
> memcntl(0xEF480000, 101964, MC_ADVISE, 0x0003, 0, 0) = 0
> close(4)                                        = 0
> open("/usr/athena/lib/libroken.so.16", O_RDONLY) = 4
> fstat(4, 0xEFFFF05C)                            = 0
> mmap(0xEF7A0000, 8192, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 4, 0) = 0xEF7A0000
> mmap(0x00000000, 196608, PROT_READ|PROT_EXEC, MAP_PRIVATE, 4, 0) = 0xEF540000
> mmap(0xEF56C000, 9748, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 4, 114688) = 0xEF56C000
> munmap(0xEF55E000, 57344)                       = 0
> memcntl(0xEF540000, 19000, MC_ADVISE, 0x0003, 0, 0) = 0
> close(4)                                        = 0
> mmap(0x00000000, 8192, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0xEF640000
> open("/usr/athena/lib/libdl.so.1", O_RDONLY)    Err#2 ENOENT
> open("/usr/local/lib/libdl.so.1", O_RDONLY)     Err#2 ENOENT
> open("/usr/lib/security/libdl.so.1", O_RDONLY)  Err#2 ENOENT
> open("/software/@sys/usr/lib/libdl.so.1", O_RDONLY) Err#2 ENOENT
> open("/usr/ccs/lib/libdl.so.1", O_RDONLY)       Err#2 ENOENT
> open("/usr/lib/libdl.so.1", O_RDONLY)           = 4
> fstat(4, 0xEFFFF05C)                            = 0
> mmap(0xEF7A0000, 8192, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 4, 0) = 0xEF7A0000
> close(4)                                        = 0
> open("/usr/athena/lib/libmp.so.2", O_RDONLY)    Err#2 ENOENT
> open("/usr/local/lib/libmp.so.2", O_RDONLY)     Err#2 ENOENT
> open("/usr/lib/security/libmp.so.2", O_RDONLY)  Err#2 ENOENT
> open("/software/@sys/usr/lib/libmp.so.2", O_RDONLY) Err#2 ENOENT
> open("/usr/ccs/lib/libmp.so.2", O_RDONLY)       Err#2 ENOENT
> open("/usr/lib/libmp.so.2", O_RDONLY)           = 4
> fstat(4, 0xEFFFF05C)                            = 0
> mmap(0x00000000, 8192, PROT_READ|PROT_EXEC, MAP_PRIVATE, 4, 0) = 0xEF630000
> mmap(0x00000000, 81920, PROT_READ|PROT_EXEC, MAP_PRIVATE, 4, 0) = 0xEF460000
> mmap(0xEF472000, 3581, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 4, 8192) = 0xEF472000
> munmap(0xEF464000, 57344)                       = 0
> memcntl(0xEF460000, 3020, MC_ADVISE, 0x0003, 0, 0) = 0
> close(4)                                        = 0
> open("/usr/athena/lib/libdb-4.0.so", O_RDONLY)  Err#2 ENOENT
> open("/usr/local/lib/libdb-4.0.so", O_RDONLY)   Err#2 ENOENT
> open("/usr/lib/security/libdb-4.0.so", O_RDONLY) Err#2 ENOENT
> open("/software/@sys/usr/lib/libdb-4.0.so", O_RDONLY) = 4
> fstat(4, 0xEFFFF05C)                            = 0
> mmap(0xEF630000, 8192, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 4, 0) = 0xEF630000
> mmap(0x00000000, 1081344, PROT_READ|PROT_EXEC, MAP_PRIVATE, 4, 0) = 0xEF300000
> mmap(0xEF404000, 14512, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 4, 999424) = 0xEF404000
> munmap(0xEF3F6000, 57344)                       = 0
> memcntl(0xEF300000, 63540, MC_ADVISE, 0x0003, 0, 0) = 0
> close(4)                                        = 0
> open("/usr/platform/SUNW,Ultra-30/lib/libc_psr.so.1", O_RDONLY) = 4
> fstat(4, 0xEFFFEEBC)                            = 0
> mmap(0xEF630000, 8192, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 4, 0) = 0xEF630000
> mmap(0x00000000, 16384, PROT_READ|PROT_EXEC, MAP_PRIVATE, 4, 0) = 0xEF620000
> close(4)                                        = 0
> mprotect(0xEF760000, 125912, PROT_READ|PROT_WRITE|PROT_EXEC) = 0
> mprotect(0xEF760000, 125912, PROT_READ|PROT_EXEC) = 0
> close(3)                                        = 0
> munmap(0xEF630000, 8192)                        = 0
> brk(0x000B4280)                                 = 0
> brk(0x000B6280)                                 = 0
> brk(0x000B6280)                                 = 0
> brk(0x000B8280)                                 = 0
> getpid()                                        = 10655 [10654]
> getpid()                                        = 10655 [10654]
> open("/dev/urandom", O_RDONLY)                  = 3
> read(3, "BD", 1)                                = 1
> read(3, " p", 1)                                = 1
> read(3, "\v", 1)                                = 1
> read(3, "F3", 1)                                = 1
> [...]
> time()                                          = 1034775742
> getpid()                                        = 10655 [10654]
> getpid()                                        = 10655 [10654]
> time()                                          = 1034775743
> getpid()                                        = 10655 [10654]
> getpid()                                        = 10655 [10654]
> stat64("", 0xEFFFF070)                          Err#2 ENOENT
> open64("", O_WRONLY|O_CREAT|O_TRUNC, 0600)      Err#2 ENOENT
> open  failed: No such file or directory.write(2, " o p e n     f a i l e d".., 40)      = 40
> 
> write(2, "\r\n", 2)                             = 2
> Saving the key failed: .
> write(1, " S a v i n g   t h e   k".., 25)      = 25
> llseek(0, 0, SEEK_CUR)                          = 40167
> _exit(1)
> bash-2.05b#
> 
> 
> -- 
> Martin Mokrejs <mmokrejs at natur.cuni.cz>, <m.mokrejs at gsf.de>
> PGP5.0i key is at http://www.natur.cuni.cz/~mmokrejs
> MIPS / Institute for Bioinformatics <http://mips.gsf.de>
> GSF - National Research Center for Environment and Health
> Ingolstaedter Landstrasse 1, D-85764 Neuherberg, Germany
> tel.: +49-89-3187 3683 , fax: +49-89-3187 3585
> 
> _______________________________________________
> openssh-unix-dev at mindrot.org mailing list
> http://www.mindrot.org/mailman/listinfo/openssh-unix-dev

--- End of mmokrejs at natur.cuni.cz's quote ---

-- 
Kind regards,
Luc Suryo



More information about the openssh-unix-dev mailing list