Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SSH Problem.

Status
Not open for further replies.

ensorg

IS-IT--Management
Jan 9, 2002
229
0
0
GB
Hi,

I'm having a problem connected to a PIX using SSH. I enabled SSH using the command "SSH 0 0 outside" and I enabled a key using the commands..

ca generate rsa key 1024
ca save all

I downloaded putty to use as my client and changed to SSH from the default telnet. But when I try to connected to the PIX I get a connection refused error message.

Can you see any problems with my configuration below? or could it be a problem with the router (ISP's) dropping the SSH traffic?

nameif ethernet0 outside security0
nameif ethernet1 inside security100
enable password encrypted
hostname TMAXWALES
domain-name ciscopix.com
fixup protocol ftp 21
fixup protocol http 80
fixup protocol h323 h225 1720
fixup protocol h323 ras 1718-1719
fixup protocol ils 389
fixup protocol rsh 514
fixup protocol rtsp 554
fixup protocol smtp 25
fixup protocol sqlnet 1521
fixup protocol sip 5060
fixup protocol skinny 2000
names
access-list inside_outbound_nat0_acl permit ip 192.168.254.0 255.255.255.0 192.84.7.0 255.255.255.0
access-list outside_cryptomap_20 permit ip 192.168.254.0 255.255.255.0 192.84.7.0 255.255.255.0
pager lines 24
logging trap debugging
logging host inside 192.168.254.10
interface ethernet0 10baset
interface ethernet1 10full
mtu outside 1500
mtu inside 1500
ip address outside *.*.*.* 255.255.255.248
ip address inside 192.168.254.1 255.255.255.0
ip audit info action alarm
ip audit attack action alarm
pdm location 192.168.254.10 255.255.255.255 inside
pdm history enable
arp timeout 14400
global (outside) 1 interface
nat (inside) 0 access-list inside_outbound_nat0_acl
nat (inside) 1 0.0.0.0 0.0.0.0 0 0
route outside 0.0.0.0 0.0.0.0 *.*.*.*
timeout xlate 3:00:00
timeout conn 1:00:00 half-closed 0:10:00 udp 0:02:00 rpc 0:10:00 h323 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 192.168.254.10 255.255.255.255 inside
no snmp-server location
no snmp-server contact
snmp-server community public
no snmp-server enable traps
floodguard enable
sysopt connection permit-ipsec
no sysopt route dnat
crypto ipsec transform-set ESP-3DES-SHA esp-3des esp-sha-hmac
crypto map outside_map 20 ipsec-isakmp
crypto map outside_map 20 match address outside_cryptomap_20
crypto map outside_map 20 set peer *.*.*.*
crypto map outside_map 20 set transform-set ESP-3DES-SHA
crypto map outside_map interface outside
isakmp enable outside
isakmp key **** address *.*.*.* netmask 255.255.255.255 no-xauth no-config-mode
isakmp policy 20 authentication pre-share
isakmp policy 20 encryption 3des
isakmp policy 20 hash sha
isakmp policy 20 group 2
isakmp policy 20 lifetime 86400
telnet timeout 5
ssh 0.0.0.0 0.0.0.0 outside
ssh timeout 60
terminal width 80
 
You are missing the password... type the following command:

passwd <password>

If that doesn't work then do a &quot;show ca mypubkey rsa&quot; to make sure the CA key is still configured.
 
Hi,

Thanks for the response, I created a password using the passwd command and did the show ca mypubkey rsa command - it shows that the key has been created, but when I attempt to connect via Putty I am getting the same error message.
 
Sometimes the RSA keys get corrupted. Try issuing the following on the pix, then reconnecting

ca zeroize rsa
ca generate rsa key 1024
ca save all

This will clear the rsa key you currently have, and generate another.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top