cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
882
Views
0
Helpful
2
Replies

ssh connection to pix fails

d.ferroni
Level 1
Level 1

Hi community,

We got a Cisco Secure PIX Firewall 535 release 6.0 (1) witha a failover configuration. We configured ssh but sometimes it appens that we're no more able to get access to it, seemly without any explanation. With the Pix Device Manager we can access it and see that the access list is right and that there are not ssh session pendings. We experienced that after a reboot, the standby device becomes active and the ssh access is newly available.

Any help is appreciating.

$ ssh -l pix -c des 10.0.0.1

ssh: connect to address 10.0.0.1 port 22: Connection refused

2 Replies 2

gfullage
Cisco Employee
Cisco Employee

SSH to a PIX failover pair will not really work. The trouble is that after failover, the standby PIX assumes the IP and MAC addresses of the primary. The PIX however, are going to have a different set of public/private key pairs that are used for the SSH session. Your SSH client tries to use the public key of the primary PIX cause that's the IP address it knows about, but it doesn't work because it's actually connecting to the secondary PIX (because of the reboot and the IP address changeover).

In short, it doesn't work.

Thank you for yor reply, but maybe I need to explain more precisely what I mean. I'm not just rebooting the pix and trying to get ssh access to the standby device which is become active; after a first reboot tha makes the standby as active, a new reboot will make active the original device, and in this way ssh works just fine. This is not a solution to a real problem: by the PDM there's no ssh pending session, but if I 'ssh' to the pix from a unix shell and then take a look to the PDM logging, I receive a message of 'ssh sessions exceided' while there're no ssh sessions. The only way to bypass this, is to do what I mentioned above.

Thanks anyway

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Review Cisco Networking products for a $25 gift card