TGViewer
localhost localhost @localhost_ir · 10.6K subscribers
Post #4608 3.3K
فعالسازی SSH بر روی سوئیچ سیسکو

Switch> enable
Switch# configure terminal

Enter configuration commands, one per line. End with CNTL/Z.

Switch(config)# hostname SW-1
SW-1(config)# username admin privilege 15 secret [PASSWORD]

SW-1(config)# line console 0
SW-1(config-line)# login local
SW-1(config-line)# exit

SW-1(config)# interface vlan 1
SW-1(config-if)# ip address [IP ADDRESS] [SUBNET MASK]
SW-1(config-if)# no shutdown

%LINK-5-CHANGED: Interface Vlan1, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan1, changed state to up

SW-1(config-if)# exit

SW-1(config)# ip default-gateway [DEFAULT GATEWAY]

SW-1(config)# ip domain-name [DOMAIN NAME]

SW-1(config)# crypto key generate rsa modulus 2048

The name for the keys will be: SW-1.[DOMAIN NAME]

% The key modulus size is 2048 bits

% Generating 2048 bit RSA keys, keys will be non-exportable...
[OK]

SW-1(config)# ip ssh version 2

*Mar 1 00:10:53.861: %SSH-5-ENABLED: SSH 1.99 has been enabled

SW-1(config)# line vty 0 15
SW-1(config-line)# login local
SW-1(config-line)# transport input ssh
SW-1(config-line)# exec-timeout 10 0
SW-1(config-line)# exit

SW-1(config)# end

SW-1# write memory

Building configuration...
[OK]

SW-1#
  • ⚡ 10
  • ❤ 6
More from @localhost_ir
  1. Oct 11, 2026‏معین یه اسکریپت نوشته که هسته Xray ای که پترنیها درست کرده رو روی OpenWrt میاره بالا…
  2. Oct 11, 2026دسترسی به مستندات و راهنماهای آزاد به زبان فارسی، یکی از گام‌های مهم برای رشد جامعه کاربری…
  3. Oct 10, 2026تلگرام از دیروز به تمامی کاربرانی که درخواست Serverless کرده بودند، این دسترسی رو داد و طب…
  4. Oct 10, 2026اگه تلگرام دسکتاپتون قدیمی تر از 7.2.9 هست سریعتر آپدیت کنید به 7.3 یه باگ خطری پیدا شده h…
  5. Oct 10, 2026اسم تکنولوژی کلاود همه جا هست ولی هنوز دقیقا خیلیا نمی‌دونن چیه. دلیلش هم‌مشخصه میخوان از…
  6. Oct 10, 2026🐍ترجمه فارسی داکیومنت زبان پایتون منتشر شد🐍 💡از چندوقت پیش Revisto به همراهی سپهر و inv…
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook →Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 →