View previous topic :: View next topic |
Author |
Message |
meekj Guest
|
Posted: Sun Apr 21, 2002 12:21 am Post subject: sshd |
|
|
Hello. I would like to setup sshd to run at startup. How do I do this? I also need to generate RSA keys it times me when I run "sshd" manualy. Thank you. |
|
Back to top |
|
|
klieber Bodhisattva
Joined: 17 Apr 2002 Posts: 3657 Location: San Francisco, CA
|
Posted: Sun Apr 21, 2002 12:29 am Post subject: Re: sshd |
|
|
meekj wrote: | Hello. I would like to setup sshd to run at startup |
as root, rc-update add ssh default (might be sshd instead of ssh -- not sure)
Quote: | I also need to generate RSA keys it times me when I run "sshd" manualy. Thank you. |
Not sure I understand this question -- sshd should generate keys automatically when you start it if it needs to.
--kurt _________________ The problem with political jokes is that they get elected |
|
Back to top |
|
|
Nitro Bodhisattva
Joined: 08 Apr 2002 Posts: 661 Location: San Francisco
|
Posted: Sun Apr 21, 2002 4:14 am Post subject: Re: sshd |
|
|
meekj wrote: | I also need to generate RSA keys it times me when I run "sshd" manualy. Thank you. |
What you are looking for is 'ssh-keygen'
Code: | ssh-keygen -t rsa -f /etc/ssh/ssh_host_rsa_key
ssh-keygen -t dsa -f /etc/ssh/ssh_host_dsa_key |
Also, make sure that you only run the sshd under protocol two, there was an exploit for protocol one out a while ago, and I don't see much of a need to use it anymore. That means on a line in you sshd_config you should have just: 'Protocol 2'
For more information about the exploit I mentioned visit: http://www.kb.cert.org/vuls/id/945216
Hope this helps _________________ - Kyle Manna
Please, please SEARCH before posting.
There are three kinds of people in the world: those who can count, and those who can't. |
|
Back to top |
|
|
|