顯示具有 ssh 標籤的文章。 顯示所有文章
顯示具有 ssh 標籤的文章。 顯示所有文章

2020年11月12日 星期四

修正cisco switch ssh無法連線問題

指令

switch#conf t

switch#crypto key zeroize

switch#crypto key generate rsa general-keys modulus 2048

switch#end

switch#wr


連線時出現的錯誤訊息

Unable to negotiate with 192.168.0.1 port 22: no matching key exchange method found. Their offer: diffie-hellman-group1-sha1 


修改後的連線方式

ssh -o KexAlgorithms=+diffie-hellman-group1-sha1 -c aes256-cbc user@192.168.0.1

2018年4月25日 星期三

webssh2

#安裝git
>pkg install git

#安裝npm
>pkg install npm

#下載webssh2
>git clone https://github.com/billchurch/WebSSH2

>cd WebSSH2/app

#複製config.json
>cp config.json.example config.json

#安裝webssh2
>npm install --production

#啟動服務
>npm start