Em 23-05-2013 08:19, Baho Utot escreveu:
> On 05/22/2013 06:08 PM, Bruce Dubbs wrote:
>> Baho Utot wrote:
>>> In the section for openssh  the following should be added to the
>>> instructions for running sshd
>>>
>>> ssh-keygen -f /etc/ssh/ssh_host_rsa_key -N '' -t rsa
>>> ssh-keygen -f /etc/ssh/ssh_host_dsa_key -N '' -t dsa
>>> ssh-keygen -f /etc/ssh/ssh_host_ecdsa_key -N '' -t ecdsa
>>>
>>> This generates the keys for sshd and it will then not throw an
>>> error/warning message when sshd is started from the start up scripts.
>> According to my log, these are done automatically with make install:
>>
>> Generating public/private rsa1 key pair.
>> Your identification has been saved in /etc/ssh/ssh_host_key.
>> Your public key has been saved in /etc/ssh/ssh_host_key.pub.
>> ...
>>
>> Generating public/private dsa key pair.
>> Your identification has been saved in /etc/ssh/ssh_host_dsa_key.
>> Your public key has been saved in /etc/ssh/ssh_host_dsa_key.pub.
>> ...
>>
>> Generating public/private rsa key pair.
>> Your identification has been saved in /etc/ssh/ssh_host_rsa_key.
>> Your public key has been saved in /etc/ssh/ssh_host_rsa_key.pub.
>>
>>     -- Bruce
> 
> $ grep Generating LOGS/openssh
> $
> 
> $ grep public LOGS/openssh
> $
> 
> $ grep ssh_host_key.pub LOGS/openssh
> $
> 
> nothing returned on any of the above
> 

As normal user, inside /tmp/openssh-6.2p1:

mkdir -vp /tmp/openssh-6.2p1/destdir

{ time \
{
date &&
install -v -m755 -d /tmp/openssh-6.2p1/destdir/{etc/ssh,usr/share/sshd} &&
install -v -m700 -d /tmp/openssh-6.2p1/destdir/var/lib/sshd &&
./configure --prefix=/tmp/openssh-6.2p1/destdir/usr
    --sysconfdir=/tmp/openssh-6.2p1/destdir/etc/ssh
--datadir=/tmp/openssh-6.2p1/destdir/usr/share/sshd
--with-md5-passwords
--with-privsep-path=/tmp/openssh-6.2p1/destdir/var/lib/sshd &&
make &&
make install &&
install -v -m755 -d
/tmp/openssh-6.2p1/destdir/usr/share/doc/openssh-6.2p1 &&
install -v -m644 INSTALL LICENCE OVERVIEW README* \
    /tmp/openssh-6.2p1/destdir/usr/share/doc/openssh-6.2p1 &&
date &&
echo "ls -l /tmp/openssh-6.2p1/destdir/etc/ssh/*" &&
ls -l /tmp/openssh-6.2p1/destdir/etc/ssh/*
}
} 2>&1 | tee -a teste-key-gen.log

ls -l /tmp/openssh-6.2p1/destdir/etc/ssh/*
-rw-r--r-- 1 fernando fernando 242153 Mai 23 11:30
/tmp/openssh-6.2p1/destdir/etc/ssh/moduli
-rw-r--r-- 1 fernando fernando   1555 Mai 23 11:30
/tmp/openssh-6.2p1/destdir/etc/ssh/ssh_config
-rw-r--r-- 1 fernando fernando   3727 Mai 23 11:30
/tmp/openssh-6.2p1/destdir/etc/ssh/sshd_config
-rw------- 1 fernando fernando    668 Mai 23 11:30
/tmp/openssh-6.2p1/destdir/etc/ssh/ssh_host_dsa_key
-rw-r--r-- 1 fernando fernando    613 Mai 23 11:30
/tmp/openssh-6.2p1/destdir/etc/ssh/ssh_host_dsa_key.pub
-rw------- 1 fernando fernando    227 Mai 23 11:30
/tmp/openssh-6.2p1/destdir/etc/ssh/ssh_host_ecdsa_key
-rw-r--r-- 1 fernando fernando    185 Mai 23 11:30
/tmp/openssh-6.2p1/destdir/etc/ssh/ssh_host_ecdsa_key.pub
-rw------- 1 fernando fernando    988 Mai 23 11:30
/tmp/openssh-6.2p1/destdir/etc/ssh/ssh_host_key
-rw-r--r-- 1 fernando fernando    653 Mai 23 11:30
/tmp/openssh-6.2p1/destdir/etc/ssh/ssh_host_key.pub
-rw------- 1 fernando fernando   1679 Mai 23 11:30
/tmp/openssh-6.2p1/destdir/etc/ssh/ssh_host_rsa_key
-rw-r--r-- 1 fernando fernando    405 Mai 23 11:30
/tmp/openssh-6.2p1/destdir/etc/ssh/ssh_host_rsa_key.pub

Log attached.

-- 
[]s,
Fernando

Attachment: teste-key-gen.log.xz
Description: Binary data

-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to