{"id":1132,"date":"2021-11-14T14:05:21","date_gmt":"2021-11-14T11:05:21","guid":{"rendered":"https:\/\/wiki.volu-t.ru\/?p=1132"},"modified":"2021-11-14T14:06:49","modified_gmt":"2021-11-14T11:06:49","slug":"cisco-asa-ssh-access","status":"publish","type":"post","link":"https:\/\/wiki.m-network.ru\/?p=1132","title":{"rendered":"Cisco ASA SSH Access"},"content":{"rendered":"\n<p>\u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430, \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0438\u043c\u044f \u0445\u043e\u0441\u0442\u0430 \u0438 \u0434\u043e\u043c\u0435\u043d\u0430.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">ciscoasa(config)#&nbsp;hostname&nbsp;<br>ASAASA(config)#<\/pre>\n\n\n\n<p>\u0412 \u0438\u043c\u0435\u043d\u0438 \u0434\u043e\u043f\u0443\u0441\u0442\u0438\u043c\u043e \u043c\u0430\u043a\u0441\u0438\u043c\u0443\u043c&nbsp;63&nbsp;\u0441\u0438\u043c\u0432\u043e\u043b\u0430<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">ASA(config)# domain-name unix.ntASA(config)#<\/pre>\n\n\n\n<p>\u0414\u0430\u043b\u0435\u0435, \u0435\u0441\u0442\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e, \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c \u0437\u0430\u0434\u0430\u043d \u043f\u0430\u0440\u043e\u043b\u044c \u0434\u043b\u044f \u0432\u0445\u043e\u0434\u0430 \u0432 \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440\u0441\u043a\u0438\u0439 \u0440\u0435\u0436\u044b\u043c.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">ASA(config)# enable password $uper$ecret level 15<\/pre>\n\n\n\n<p>\u041a\u043e\u043d\u0435\u0447\u043d\u043e \u0436\u0435, \u0434\u043e\u043b\u0436\u043d\u043e \u0431\u044b\u0442\u044c \u0437\u0430\u0434\u0430\u043d\u043e \u0438\u043c\u044f \u0438 \u043f\u0430\u0440\u043e\u043b\u044c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f&nbsp;c&nbsp;\u0441 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u043c\u0438 \u043f\u0440\u0438\u0432\u0438\u043b\u0435\u0433\u0438\u044f\u043c\u0438<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">ASA(config)# username andrey password @ndreypa$$ pri 15<\/pre>\n\n\n\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043c\u043e\u0436\u043d\u043e \u0441\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043a\u043b\u044e\u0447 \u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u044f.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">ASA(config)# crypto key generate rsa<br>INFO: The name for the keys will be:Keypair generation process begin. Please wait...<br>ASA(config)#<\/pre>\n\n\n\n<p>\u041f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u043c \u043d\u0435\u043f\u043e\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u043a \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0435&nbsp;SSH. \u0423\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c \u0432\u0435\u0440\u0441\u0438\u044e:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">ASA(config)#&nbsp;ssh&nbsp;version&nbsp;2<br>ASA(config)# ssh ?<br>configure mode commands\/options:<br>   Hostname or A.B.C.D The IP address of the host and\/or network           <br>        authorized to login to the system<br>   X:X:X:X::X\/&lt;0-128&gt; IPv6 address\/prefix authorized to login to the system<br>   scopy       Secure Copy mode<br>   timeout   Configure ssh idle timeout<br>   version    Specify protocol version to be supported<br><br>exec mode commands\/options:<br>   disconnect Specify SSH session id to be disconnected after this keyword<\/pre>\n\n\n\n<p><br>\u0423\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c \u043e\u0442\u043a\u0443\u0434\u0430 \u0440\u0430\u0437\u0440\u0435\u0448\u0438\u0442\u044c \u043b\u043e\u0433\u0438\u043d.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">ASA(config)# ssh 192.168.10.0 255.255.255.0 ?<br>configure mode commands\/options:<br>Current available interface(s):<br>   exit Name of interface Ethernet0\/0.10<br>   outside Name of interface Ethernet0\/0<br>ASA(config)# ssh 192.168.10.0 255.255.255.0<br>ASA(config)#&nbsp;ssh&nbsp;192.168.10.0 255.255.255.0&nbsp;exit<\/pre>\n\n\n\n<p>\u0422\u0443\u0442 \u0443 \u043c\u0435\u043d\u044f&nbsp;exit&nbsp;\u044d\u0442\u043e \u0438\u043c\u044f \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430, \u0430 \u0440\u0430\u0437\u0440\u0435\u0448\u0438\u043b \u044f \u0446\u0435\u043b\u0443\u044e \u043f\u043e\u0434\u0441\u0435\u0442\u044c.\u0422\u0435\u043f\u0435\u0440\u044c&nbsp;SSH&nbsp;\u0437\u0430\u043f\u0443\u0449\u0435\u043d, \u043d\u043e \u0447\u0442\u043e\u0431\u044b \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u043f\u043e\u0434 \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u044b\u043c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u043c \u043d\u0443\u0436\u043d\u043e&nbsp;\u0432\u0432\u0435\u0441\u0442\u0438 \u043a\u043e\u043c\u0430\u043d\u0434\u0443<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">ASA(config)# aaa authenticatication&nbsp;ssh console LOCAL<\/pre>\n\n\n\n<p>\u041a\u0430\u043a \u0432\u0438\u0434\u043d\u043e \u0438\u0437 \u0430\u0434\u0440\u0435\u0441\u0430\u0446\u0438\u0438, \u0443 \u043c\u0435\u043d\u044f&nbsp;ASA&nbsp;\u0432 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e\u0439 \u0441\u0435\u0442\u0438, \u0442\u0430\u043a \u0447\u0442\u043e \u043d\u0435\u043f\u043b\u043e\u0445\u043e \u0431\u044b \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0430\u0434\u0440\u0435\u0441\u0430&nbsp;DNS&nbsp;\u0438 \u0448\u043b\u044e\u0437\u0430.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">ASA(config)# dns domain-lookup ?<br>configure mode commands\/options:<br>Current available interface(s):<br>   exit        Name of interface Ethernet0\/0.10<br>   outside  Name of interface Ethernet0\/0<br>ASA(config)# dns domain-lookup exit<br>ASA(config)# dns name-server 8.8.8.8<br>ASA(config)# route exit 0.0.0.0 0.0.0.0 192.168.10.1<br>ASA(config)# ping google.com<br>Type escape sequence to abort.<br>Sending 5, 100-byte ICMP Echos to 173.194.44.46, timeout is 2 seconds:!!!!!<br>Success rate is 100 percent (5\/5), round-trip min\/avg\/max = 40\/44\/50 ms<br>ASA(config)#<\/pre>\n\n\n\n<p>\u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0430\u043a\u0442\u0438\u0432\u043d\u044b\u0435 \u0441\u0435\u0441\u0441\u0438\u0438 \u043c\u043e\u0436\u043d\u043e \u0442\u0430\u043a<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">ASA# show ssh sessions\nSID Client IP Version Mode Encryption Hmac State          Username\n1  192.168.10.9 2.0   IN   aes128-cbc md5  SessionStarted   andrey\n                      OUT  aes128-cbc md5  SessionStarted   andrey\nASA#<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430, \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0438\u043c\u044f \u0445\u043e\u0441\u0442\u0430 \u0438 \u0434\u043e\u043c\u0435\u043d\u0430. ciscoasa(config)#&nbsp;hostname&nbsp;ASAASA(config)# \u0412 \u0438\u043c\u0435\u043d\u0438 \u0434\u043e\u043f\u0443\u0441\u0442\u0438\u043c\u043e \u043c\u0430\u043a\u0441\u0438\u043c\u0443\u043c&nbsp;63&nbsp;\u0441\u0438\u043c\u0432\u043e\u043b\u0430 ASA(config)# domain-name unix.ntASA(config)# \u0414\u0430\u043b\u0435\u0435, \u0435\u0441\u0442\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e, \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c \u0437\u0430\u0434\u0430\u043d \u043f\u0430\u0440\u043e\u043b\u044c \u0434\u043b\u044f \u0432\u0445\u043e\u0434\u0430 \u0432 \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440\u0441\u043a\u0438\u0439 \u0440\u0435\u0436\u044b\u043c. ASA(config)# enable password $uper$ecret level 15 \u041a\u043e\u043d\u0435\u0447\u043d\u043e \u0436\u0435, \u0434\u043e\u043b\u0436\u043d\u043e \u0431\u044b\u0442\u044c \u0437\u0430\u0434\u0430\u043d\u043e \u0438\u043c\u044f \u0438 \u043f\u0430\u0440\u043e\u043b\u044c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f&nbsp;c&nbsp;\u0441 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u043c\u0438 \u043f\u0440\u0438\u0432\u0438\u043b\u0435\u0433\u0438\u044f\u043c\u0438 ASA(config)# username andrey password @ndreypa$$ pri 15 \u0422\u0435\u043f\u0435\u0440\u044c \u043c\u043e\u0436\u043d\u043e \u0441\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043a\u043b\u044e\u0447 \u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u044f. ..<\/p>\n<div class=\"clear-fix\"><\/div>\n<p><a href=\"https:\/\/wiki.m-network.ru\/?p=1132\" title=\"read more...\">Read more<\/a><\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[217,205],"tags":[],"_links":{"self":[{"href":"https:\/\/wiki.m-network.ru\/index.php?rest_route=\/wp\/v2\/posts\/1132"}],"collection":[{"href":"https:\/\/wiki.m-network.ru\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wiki.m-network.ru\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wiki.m-network.ru\/index.php?rest_route=\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/wiki.m-network.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1132"}],"version-history":[{"count":2,"href":"https:\/\/wiki.m-network.ru\/index.php?rest_route=\/wp\/v2\/posts\/1132\/revisions"}],"predecessor-version":[{"id":1134,"href":"https:\/\/wiki.m-network.ru\/index.php?rest_route=\/wp\/v2\/posts\/1132\/revisions\/1134"}],"wp:attachment":[{"href":"https:\/\/wiki.m-network.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1132"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wiki.m-network.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1132"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wiki.m-network.ru\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1132"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}