cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
171619
Views
44
Helpful
17
Replies

SSH Access to ASA

Scott Pazelt
Level 1
Level 1

I can't access our ASA 5505 via SSH from the outside. I've configured this through the ASDM to allow SSH (Device Management > Management Access > ASDM/HTTPS/Telnet/SSH). I added a rule that allows SSH on the outside interface from 0.0.0.0 0.0.0.0. When I try to ssh in with putty, it says "server unexpectedly closed network connection" When I watch the logs on the ASA, it shows a Built inbound TCP connection on port 22, but then immediately a Teardown TCP connection. It doesn't show it's being blocked by any rule. Is there something I'm missing on enabling SSH?

Thanks,

Scott

17 Replies 17

Be careful with "crypto key zero noconfirm" as it will remove ALL keys you have configured on ASA including 3rd party that might be used.

Morning

 

Currently having problem ssh into my ASA aswell. Any help would be greatly appreciated

 


hostname CASHE-M-ASA
domain-name USCG
enable password $sha512$5000$QePGHWSUUC6U3pFSTvMqHA==$/hpBhma3C8/MUSMnk9ghyw== pbkdf2
names

!
interface GigabitEthernet1/1
nameif outside
security-level 0
ip address 192.168.90.185 255.255.255.0
!
interface GigabitEthernet1/2
shutdown
no nameif
no security-level
no ip address
!
interface GigabitEthernet1/3
shutdown
no nameif
no security-level
no ip address
!
interface GigabitEthernet1/4
shutdown
no nameif
no security-level
no ip address
!
interface GigabitEthernet1/5
shutdown
no nameif
no security-level
no ip address
!
interface GigabitEthernet1/6
shutdown
no nameif
no security-level
no ip address
!
interface GigabitEthernet1/7
shutdown
no nameif
no security-level
no ip address
!
interface GigabitEthernet1/8
shutdown
no nameif
no security-level
no ip address
!
interface Management1/1
management-only
shutdown
no nameif
no security-level
no ip address
!
ftp mode passive
dns server-group DefaultDNS
domain-name USCG
access-list OUTSIDE-IN extended permit icmp any any
pager lines 24
mtu outside 1500
icmp unreachable rate-limit 1 burst-size 1
icmp permit any outside
no asdm history enable
arp timeout 14400
no arp permit-nonconnected
arp rate-limit 16384
router ospf 1
network 192.168.90.0 255.255.255.0 area 0
log-adj-changes
!
route outside 192.168.83.0 255.255.255.0 192.168.90.186 1
timeout xlate 3:00:00
timeout pat-xlate 0:00:30
timeout conn 1:00:00 half-closed 0:10:00 udp 0:02:00 sctp 0:02:00 icmp 0:00:02
timeout sunrpc 0:10:00 h323 0:05:00 h225 1:00:00 mgcp 0:05:00 mgcp-pat 0:05:00
timeout sip 0:30:00 sip_media 0:02:00 sip-invite 0:03:00 sip-disconnect 0:02:00
timeout sip-provisional-media 0:02:00 uauth 0:05:00 absolute
timeout tcp-proxy-reassembly 0:01:00
timeout floating-conn 0:00:00
timeout conn-holddown 0:00:15
timeout igp stale-route 0:01:10
user-identity default-domain LOCAL
aaa authentication ssh console LOCAL
aaa authentication login-history
http server enable
no snmp-server location
no snmp-server contact
service sw-reset-button
crypto ipsec security-association pmtu-aging infinite
crypto ca trustpool policy
telnet timeout 5
ssh stricthostkeycheck
ssh 192.168.83.0 255.255.255.0 outside
ssh 192.168.90.0 255.255.255.0 outside
ssh 192.168.90.184 255.255.255.252 outside
ssh timeout 5
ssh version 2
ssh cipher encryption high
ssh cipher integrity high
ssh key-exchange group dh-group14-sha1
console timeout 0

dhcpd dns 192.168.83.0
!
dhcpd dns 192.168.83.0 interface outside
!
threat-detection basic-threat
threat-detection statistics access-list
no threat-detection statistics tcp-intercept
dynamic-access-policy-record DfltAccessPolicy
username spawar password $sha512$5000$iW9kLubyKfl/OHZ7ZvzKCA==$a7ONgvEnBhlmMUyzgZPN1Q== pbkdf2
!
class-map inspection_default
match default-inspection-traffic
!
!
policy-map type inspect dns preset_dns_map
parameters
message-length maximum client auto
message-length maximum 512
no tcp-inspection
policy-map global_policy
class inspection_default
inspect dns preset_dns_map
inspect ftp
inspect h323 h225
inspect h323 ras
inspect rsh
inspect rtsp
inspect esmtp
inspect sqlnet
inspect skinny
inspect sunrpc
inspect xdmcp
inspect sip
inspect netbios
inspect tftp
inspect ip-options
inspect icmp
!
service-policy global_policy global
prompt hostname context
no call-home reporting anonymous
call-home
profile CiscoTAC-1
no active
destination address http https://tools.cisco.com/its/service/oddce/services/DDCEService
destination address email callhome@cisco.com
destination transport-method http
subscribe-to-alert-group diagnostic
subscribe-to-alert-group environment
subscribe-to-alert-group inventory periodic monthly
subscribe-to-alert-group configuration periodic monthly
subscribe-to-alert-group telemetry periodic daily
Cryptochecksum:dbcedd7f9fc5f14cc980dd87cc74b4b6
: end

 

 

 

 

Ricky Sandhu
Level 1
Level 1

I know this is an old thread but I have another suggestion which may help someone in future.  I ran into the exact same issue.  Was setting up a brand new ASA but for the life of me couldn't SSH into the device.  I then went under Configuration > Device Management > Advanced > SSH Ciphers and set the CipherSecurity Level to ALL for both Encryption and Integrity.  Hit Apply and when I tried to SSH, I got the prompt to Accept the certificate. After I got connected, I went back to ASDM and set the Ciper Security Level back to Medium.  Tried to SSH again and it worked each time.

Cheers

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