1.win10 安装ssh
sudo apt-get remove --purge openssh-server ## 先删ssh sudo apt-get install openssh-server ## 在安装ssh
1.安装ssh 可能出现第三步错误
sudo apt-get install openssh-client openssh-server
3.win10 子系统安装ssh出现以下错误
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
解决方案
sudo rm -rf /etc/apt/apt.conf.d/20snapd.conf