Solution to sshCiscoPIX failure in Linux

Source: Internet
Author: User
Solution to sshCiscoPIX firewall failure in Linux-Linux Enterprise Application-Linux server application information. For details, refer to the following section. Symptom:

Skywalker @ skywalker-ubuntu:/usr $ ssh username @ Firewall's IP
No valid ciphers for protocol version 2 given, using defaults.
Ssh_rsa_verify: RSA modulus too small: 512 <minimum 768 bits
Key_verify failed for server_host_key

Temporary solution

Connect with the ssh-v-1-c des Parameter

Skywalker @ skywalker-ubuntu:/usr $ ssh-v-1-c des username @ Firewall's IP
OpenSSH_4.6p1 Debian-5ubuntu0.1, OpenSSL 0.9.8e 23 Feb 2007
Debug1: Reading configuration data/etc/ssh/ssh_config
Debug1: Applying options *
Debug1: Connecting to 211.100.62.34 [211.100.62.34] port 22.
Debug1: Connection established.
Debug1: identity file/home/skywalker/. ssh/identity type-1
Debug1: Remote protocol version 1.99, remote software version Cisco-1.25
Debug1: no match: Cisco-1.25
Debug1: Local version string SSH-1.5-OpenSSH_4.6p1 Debian-5ubuntu0.1
Debug1: Waiting for server public key.
Debug1: Encrypted ed server public key (768 bits) and host key (512 bits ).
Debug1: Host '2017. 100.62.34 'is known and matches the RSA1 host key.
Debug1: Found key in/home/skywalker/. ssh/known_hosts: 6
Debug1: Encryption type: des
Debug1: Sent encrypted session key.
Warning: use of DES is strongly discouraged due to cryptographic weaknesses
Debug1: Installing crc compensation attack detector.
Debug1: encrypted ed encrypted confirmation.
Debug1: Doing password authentication.
Pix@211.100.62.34's password:

Permanent solution

If you do not want to carry a large string of SSH parameters every time, you need to regenerate a suitable key as follows:

Log on to the PIX and use ssh

> Enable
Configure terminal
Crypto key zeroize rsa clear existing RSA KEY
Crypto key generate rsa modulus 1024 noconfirm generate a new RSA KEY

If you use the above SSH Login method, the KEY stored in your machine will not match the PIX, And the SSH will prompt the following error:

@ WARNING: remote host identification has changed! @
It is possible that someone is doing something nasty!
Someone cocould be eavesdropping on you right now (man-in-the-middle attack )!
It is also possible that the RSA host key has just been changed.
The fingerprint for the RSA key sent by the remote host is
Xx. xx
Please contact your system administrator.
Add correct host key in/home/skywalker/. ssh/known_hosts to get rid of this message.
Offending key in/home/skywalker/. ssh/known_hosts: 5
RSA host key for Firewall's IP has changed and you have requested strict checking.
Host key verification failed.

You must first /. in ssh/known_hosts, clear the invalid KEY of the corresponding PIX. If you do not know which KEY is the PIX, it does not matter to clear all known_hosts, but when you log on to another machine for the first time, confirm once (yes/no ).

After the invalid KEY is cleared, ssh can log on to the PIX normally.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.