ssh to pix

Answered Question
Jan 27th, 2008

i am trying to ssh to my pix from a outside connection. I am using a verizon wireless card and my ip is changing all the time.

can some please tell me what to add to my configuration so that i can accomplis this!

PIX Version 6.3(3)

interface ethernet0 auto

interface ethernet1 auto

nameif ethernet0 outside security0

nameif ethernet1 inside security100

enable password xxx

passwd xxx

hostname pixfirewall

domain-name ciscopix.com

clock timezone CST -6

clock summer-time CDT recurring

fixup protocol dns maximum-length 512

fixup protocol ftp 21

fixup protocol h323 h225 1720

fixup protocol h323 ras 1718-1719

fixup protocol http 80

fixup protocol icmp error

fixup protocol rsh 514

fixup protocol rtsp 554

fixup protocol sip 5060

fixup protocol sip udp 5060

fixup protocol skinny 2000

fixup protocol smtp 25

fixup protocol sqlnet 1521

fixup protocol tftp 69

names

name 10.9.2.200 E1505

name 10.9.2.204 slingmedia

name 10.9.2.202 playstation3

access-list outside_acl permit tcp any interface outside eq 3389

access-list outside_acl permit tcp any interface outside eq 5001

pager lines 300

mtu outside 1500

mtu inside 1500

ip address outside dhcp setroute

ip address inside 10.9.2.1 255.255.255.0

ip audit info action alarm

ip audit attack action alarm

pdm logging informational 100

pdm history enable

arp timeout 14400

global (outside) 1 interface

nat (inside) 1 0.0.0.0 0.0.0.0 0 0

static (inside,outside) tcp interface 3389 E1505 3389 netmask 255.255.255.255 0 0

static (inside,outside) tcp interface 5001 slingmedia 5001 netmask 255.255.255.255 0 0

access-group outside_acl in interface outside

timeout xlate 0:05:00

timeout conn 1:00:00 half-closed 0:10:00 udp 0:02:00 rpc 0:10:00 h225 1:00:00

timeout h323 0:05:00 mgcp 0:05:00 sip 0:30:00 sip_media 0:02:00

timeout uauth 0:05:00 absolute

aaa-server TACACS+ protocol tacacs+

aaa-server RADIUS protocol radius

aaa-server LOCAL protocol local

http server enable

http 10.9.2.0 255.255.255.0 inside

no snmp-server location

no snmp-server contact

snmp-server community public

no snmp-server enable traps

floodguard enable

telnet 10.9.2.0 255.255.255.0 inside

telnet timeout 5

ssh 0.0.0.0 0.0.0.0 outside

ssh timeout 5

console timeout 0

dhcpd address E1505-10.9.2.250 inside

dhcpd lease 3600

dhcpd ping_timeout 750

dhcpd auto_config outside

dhcpd enable inside

terminal width 200

Cryptochecksum:xxx

: end

I have this problem too.
0 votes
Correct Answer by manjesin about 8 years 10 months ago

Hi,

Command to regenerate RSA key on 6.3 software is

ca generate rsa key 1024

ca save all

Notice,outside interface is configured dhcp client .. make sure outside interface is not diferent then ip address u r trying ssh ..

Thanks,

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (1 ratings)
Loading.
ajagadee Sun, 01/27/2008 - 23:23

Have you generated the RSA Key. "crypto key generate rsa general modulus 1024" for SSH to work.

Also, since you have "SSH 0.0.0.0 0.0.0.0 outside" configured on the Pix, pretty much anyone from the outside world should be be able to SSH into the Pix and ofcourse they need to know the username/password.

Regards,

Arul

** Please rate all helpful posts **

srue Mon, 01/28/2008 - 05:33

your username will be 'pix' and your password will be whatever your normal password is.

Correct Answer
manjesin Tue, 01/29/2008 - 16:46

Hi,

Command to regenerate RSA key on 6.3 software is

ca generate rsa key 1024

ca save all

Notice,outside interface is configured dhcp client .. make sure outside interface is not diferent then ip address u r trying ssh ..

Thanks,

Actions

This Discussion