How to configure OpenSSH 7.0(and above) to login smart and managed switches?

T1600G-18TS , T1500G-10PS , TL-SG2216 , T2600G-52TS , T2600G-28TS , TL-SG2210P , T2500-28TC , T2700G-28TQ , T2500G-10TS , TL-SG5412F , T2600G-28MPS , T1500G-10MPS , SG2210P , S4500-8G , T1500-28TC , T1700X-16TS , T1600G-28TS , TL-SL3452 , TL-SG3216 , T3700G-52TQ , TL-SG2008 , T1700G-28TQ , T1500-28PCT , T2600G-18TS , T1600G-28PS , T2500G-10MPS , Festa FS310GP , T1600G-52MPS , T1600G-52PS , TL-SL2428 , T1600G-52TS , T3700G-28TQ , T1500G-8T , T1700X-28TQ
Recent updates may have expanded access to feature(s) discussed in this FAQ. Visit your product's support page, select the correct hardware version for your device, and check either the Datasheet or the firmware section for the latest improvements added to your product. Please note that product availability varies by region, and certain models may not be available in your region.
SSH is a security protocol for network communication. It is an encrypted shell which provides a secure tunnel for different kinds of network protocols such as telnet, ftp, pop, etc.
When we use OpenSSH client on Linux to login switch, sometimes it will turns out an error info as shown below:
This is because OpenSSH 7.0 (and above) disable the algorithm by default that our switches are applying. We need to enable the corresponding algorithm on OpenSSH client manually.
Generally speaking, OpenSSH client had been installed on Linux system by default. We can type in dpkg –L|grep ssh to check what version our OpenSSH client is. OpenSSH client version on this system is 7.2.
Let’s start from the beginning and take T1600G-28TS( IP address 192.168.1.52) as an example. We are aimed to login switch via OpenSSH client with Ubuntu 1604. Before everything, we should enable SSH by WebUI (you can also use telnet). Go to System--->Access Security--->SSH Config, Enable SSH. Click Apply.
Because here our OpenSSH client version is 7.2, we need to modify configuration file of OpenSSH client under this condition. Turn to /etc/ssh floder On Ubuntu. We open ssh_config via nano. After entering sudo nano ssh_config, we need type system login password. Here is root.
cd /etc/ssh
sudo nano ssh_config
Add
Host 192.168.1.52
KexAlgorithms +diffie-hellman-group1-sha1
HostKeyAlgorithms +ssh-dss
to the bottom of ssh_config as picture below. This step we enable the corresponding algorithms for 192.168.1.52. Then press Ctrl+O to save. Ctrl+X to exit.
Now let’s try to login. Type command ssh admin@192.168.1.52, then enter defdult password admin. We login successfully!
這篇faq是否有用?
您的反饋將幫助我們改善網站
What’s your concern with this article?
- Dissatisfied with product
- Too Complicated
- Confusing Title
- Does not apply to me
- Too Vague
- 其他
謝謝
感謝您的反饋。
點擊此處與TP-Link技術支持聯繫。
Your Privacy Choices
本網站使用 cookie 來改善網站引導、分析線上活動並在我們的網站上提供最佳的使用者體驗。您可以隨時反對使用 cookie。您可以在我們的隱私權政策中找到更多資訊。 不再顯示
基本 Cookies
These cookies are necessary for the website to function and cannot be deactivated in your systems.
TP-Link
SESSION, JSESSIONID, accepted_local_switcher, tp_privacy_banner, tp_privacy_base, tp_privacy_marketing, tp_top-banner, tp_popup-bottom, tp_popup-center, tp_popup-right-middle, tp_popup-right-bottom, tp_productCategoryType
Youtube
id, VISITOR_INFO1_LIVE, LOGIN_INFO, SIDCC, SAPISID, APISID, SSID, SID, YSC, __Secure-1PSID, __Secure-1PAPISID, __Secure-1PSIDCC, __Secure-3PSID, __Secure-3PAPISID, __Secure-3PSIDCC, 1P_JAR, AEC, NID, OTZ
Zendesk
OptanonConsent, __cf_bm, __cfruid, _cfuvid, _help_center_session, _pendo___sg__.<container-id>, _pendo_meta.<container-id>, _pendo_visitorId.<container-id>, _zendesk_authenticated, _zendesk_cookie, _zendesk_session, _zendesk_shared_session, ajs_anonymous_id, cf_clearance
分析和行銷 Cookies
Analysis cookies enable us to analyze your activities on our website in order to improve and adapt the functionality of our website.
The marketing cookies can be set through our website by our advertising partners in order to create a profile of your interests and to show you relevant advertisements on other websites.
Google Analytics & Google Tag Manager
_gid, _ga_<container-id>, _ga, _gat_gtag_<container-id>
Google Ads & DoubleClick
test_cookie, _gcl_au