2022年8月29日 星期一

SSH Client 無法連線至SSH Server 設定

因為工作用的SERVER 是比較老舊的, 所以在使用Linux Clinet SSH 連線至SERVER時會有一些錯誤。
目前的解決方式是修改Client SSH Config.
/etc/ssh 是Client 的設定資料夾
/etc/sshd 是Server 的設定資料夾

這次遇到的問題是無法連線至遠端的Server, 所以是修改 /etc/ssh 資料夾。
問題1: 
Unable to negotiate with 10.198.***.*** port 22: no matching key exchange method found. Their offer: diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1 

問題2:
Unable to negotiate with 10.198.***.** port 22: no matching host key type found. Their offer: ssh-rsa,ssh-dss

因為我的環境中, SSH 會include /etc/ssh/ssh_config.d/*.conf,所以我在該路徑加了一個melin.conf 

內容如下: 


KexAlgorithms diffie-hellman-group1-sha1,curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group14-sha1

Host *
    HostKeyAlgorithms=+ssh-dss



2022年2月25日 星期五

透過 Gmail 發信二段驗證設定

Google 啟用二段式驗證後, 會無法登入,
其他需要調整
  1. 加密 SSL/TLS ->STARTTLS
  2. PORT 587, 原本可能就設定錯誤
  3. 密碼: 至Google 帳戶設定





這封郵件來自 Evernote。Evernote 是您專屬的工作空間,免費下載 Evernote

Ads

Seo Services