1.win10 安裝sshssh
sudo apt-get remove --purge openssh-server ## 先刪ssh sudo apt-get install openssh-server ## 在安裝ssh
1.安裝ssh 可能出現第三步錯誤spa
sudo apt-get install openssh-client openssh-server
3.win10 子系統安裝ssh出現如下錯誤code
E: Could not read response to hello message from hook [ ! -f /usr/bin/snap ] || /usr/bin/snap advise-snap --from-apt 2>/dev/null || true: Success
解決方案server
sudo rm -rf /etc/apt/apt.conf.d/20snapd.conf