自從上次重灌阿里雲搭建了web伺服器之後一直沒有ssh連線過,今天再次連線時一直提示操作超時
ssh: connect to host x.x.x.x port 22: operation timed out
檢查了機器的防火牆和阿里雲的防火牆發現沒有問題,然後修改了ssh埠連線依然不成功。
telnet可以連線成功說明不是防火牆問題
telnet x.x.x.x 10022
trying x.x.x.x...
connected to x.x.x.x.
escape character is '^]'.
於是新增-v引數檢視連線時的debug資訊
ssh -p 10022 [email protected] -v
openssh_7.6p1, libressl 2.6.2
debug1: reading configuration data /etc/ssh/ssh_config
debug1: connecting to x.x.x.x port 10022.
debug1: connection established.
debug1: identity file /users/jiangzhou/.ssh/id_rsa type 0
debug1: key_load_public: no such file or directory
debug1: identity file /users/jiangzhou/.ssh/id_rsa-cert type -1
debug1: key_load_public: no such file or directory
debug1: identity file /users/jiangzhou/.ssh/id_dsa type -1
debug1: key_load_public: no such file or directory
debug1: identity file /users/jiangzhou/.ssh/id_dsa-cert type -1
debug1: key_load_public: no such file or directory
debug1: identity file /users/jiangzhou/.ssh/id_ecdsa type -1
debug1: key_load_public: no such file or directory
debug1: identity file /users/jiangzhou/.ssh/id_ecdsa-cert type -1
debug1: key_load_public: no such file or directory
debug1: identity file /users/jiangzhou/.ssh/id_ed25519 type -1
debug1: key_load_public: no such file or directory
debug1: identity file /users/jiangzhou/.ssh/id_ed25519-cert type -1
debug1: local version string ssh-2.0-openssh_7.6
ssh_exchange_identification: read: operation timed out
1、首先通過阿里雲後台登入到ecs
2、執行
chmod 600 /etc/ssh/*
systemctl restart sshd
3、成功連線
記錄一次antd訪問mock資料失敗的原因
總結 const params getmeasurementvaluesbydevice params then response src service measurementvalue.js中 如下 export async function getmeasurementvaluesbydevi...
記錄一次redis啟動失敗
解決方法 1 win r 開啟命令列 2 cd至redis目錄,例如 d redis 3 輸入 redis server.exe redis.windows.conf 觀察是否如圖1 至此,已成功 否則,繼續進行如下操作 4 若啟動redis出現 當前日期 creating server tcp l...
記錄一次阿里雲部署https的大致經過
通過阿里雲ecs簡單部署了乙個node的https專案,其中遇到不少坑,這裡大致記錄一下。由於工作比較忙,所以沒有時間寫完整的教程,就把大致流程 參考教程和其中遇到的坑記錄下來,希望對大家有所幫助。一 準備階段 1.乙個阿里雲ecs伺服器 阿里雲ecs伺服器申請位址 2.乙個備過案的網域名稱 3.一...