2016年2月16日 星期二

switch ssh 設定


在更換switch後發現設定檔完全一樣但ssh無法登入,
一般設定步驟如下:參考 cisco ssh 設定
1. enable
2. configure terminal
3. hostname hostname
4. ip domain-name name
5. crypto key generate rsa
6. ip ssh [time-out seconds | authentication-retries integer]
7. ip ssh version [2]

其實,就是少了產生公鑰的步驟,所以即使將設定檔完全倒入也無法ssh登入

crypto key generate rsa