Ethical Hacking Learn to find vulnerabilities before the bad guys do! Gain real world hands on hacking experience in our state of the art hacking lab. Course designed and taught by expert instructors with years of penetration testing experience. 12 student maximum in every class. Certification attempt included in every package. | Computer Forensics Training at InfoSec Institute Gain the in-demand skills of a certified computer examiner, learn to recover trace data left behind by fraud, theft, and cybercrime perpetrators. Discover the source of computer crime and abuse at your organization so that it never happens again. All of our class sizes are guaranteed to be 12 students or less to facilitate one-on-one interaction with one of our expert instructors. |

| Subject: | RE: Hostkeys for Interfaces? |
|---|---|
| Date: | Fri, 11 Feb 2005 02:24:15 +0530 |
Thanks for the response. I use Solaris 9, so is there any option in Solaris 9 for sshd to use particular Host key type ? TIA, - Jignesh -----Original Message----- From: Roumen Petrov [mailto:openssh@roumenpetrov.info] Sent: Thursday, February 10, 2005 2:44 PM To: Monani, Jignesh Vasantbhai (Jignesh Vasantbhai)** CTR ** Cc: Martin Schröder; SSH Subject: Re: Hostkeys for Interfaces? Monani, Jignesh Vasantbhai (Jignesh Vasantbhai)** CTR ** wrote:
I thought by default SSH uses rsa host keys irrespective of order of files in /etc/ssh/sshd_config file. We comment rsa key for sshd to use only dsa host key. Is there any way to change priority of type of keys ? - Jignesh [SNIP]
Please check OpenSSH options
HostKeyAlgorithms
Specifies the protocol version 2 host key algorithms that the
client wants to use in order of preference. The default
for this
option is: ``ssh-rsa,ssh-dss''.
===================================================
Let .../sshd_config contain two rsa keys from type "ssh-rsa" and one
from type "ssh-dss":
...
# HostKeys for protocol version 2
HostKey /etc/ssh/ssh_host_rsa_key
HostKey /etc/ssh/ssh_host_rsa_key2
HostKey /etc/ssh/ssh_host_dsa_key
...
try to connect with command
ssh -o HostKeyAlgorithms ssh-rsa ...
Let later to change only order of rsa keys in sshd_config. i.e.:
...
HostKey /etc/ssh/ssh_host_rsa_key2
HostKey /etc/ssh/ssh_host_rsa_key
...
and to repeat test:
ssh -o HostKeyAlgorithms ssh-rsa ...
The test show that sshd use first listed in sshd_config from type "ssh-rsa".
As example OpenSSH client can request dsa host key with command
ssh -o HostKeyAlgorithms ssh-dss ...
Regards,
Roumen Petrov
--
Get X.509 certificates support in OpenSSH:
http://roumenpetrov.info/openssh/
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | RE: Hostkeys for Interfaces?, Monani, Jignesh Vasantbhai (Jignesh Vasantbhai)** CTR ** |
|---|---|
| Next by Date: | Re: Hostkeys for Interfaces?, Roumen Petrov |
| Previous by Thread: | Re: Hostkeys for Interfaces?, Roumen Petrov |
| Next by Thread: | Re: Hostkeys for Interfaces?, Roumen Petrov |
| Indexes: | [Date] [Thread] [Top] [All Lists] |