每月彙整:十月 2022

ssh 出現 no matching host key type found. Their offer: ssh-rsa,ssh-dss

利用 SSH 出現 ssh user@192.168.0.111 Unable to negotiate with 192.168.0.111 port 22: no matching host key type found. Their offer: ssh-rsa,ssh-dss OpenSSH 7.0 以後不在支援 ssh-dsa算法 需增加 -oHostKeyAlgorithms=+ssh-dss ssh -xp 22 -oHostKeyAlgorithms=+ssh-dss ssh user@192.168.0.111

發表於 未分類 | 發表迴響

docker postgres

docker search -f=stars=10 postgres #搜尋10顆星以上 docker volume create –name postgresql-data docker run -d -p 5432:5432 –name mypostgres –restart always -v postgresql-data:/var/lib/postgresql/data -e POSTGRES_PASSWORD=0000 postgres -d :後台執行 Container ,並返回ID -p 5432:5432 :將 Container 的 5432 Port 映射到主機的 5432 Port (前面代表主機,後面代表容器) -name … 繼續閱讀 →

發表於 未分類 | 發表迴響

PVE CVE-2018-3646

PVE 開機出現 CVE-2018-3646這是漏洞披露的公開編號 echo off > /sys/devices/system/cpu/smt/control 不過要注意的是只要重開機SMT就會重啟,我的作法是把這個指令放到排程中讓他每次開機就自動執行,這樣就不會再跳出CVE-2018-3646的警示,作法如下 關閉SMT這個功能,關閉之後會降低電腦的運作效能 sudo vi /etc/crontab #進入排程設定 @reboot root echo off > /sys/devices/system/cpu/smt/control

發表於 proxmox | 發表迴響