雖然在wsl2的linux,可以直接訪問windows的目錄,但是總感覺不方便。習慣了用secureCRT,所以我還需要遠程訪問服務。
首先安裝net-tools
#apt install net-tools
然後就可以使用ifconfig這個問題,查看你的ip地址了
這個172.19.123.133就是我現在用的ip地址了
然後安裝ssh服務
#apt-get install openssh-server
完成之後,修改sshd_config
#vi /etc/ssh/sshd_config
找到:PasswordAuthentication
將默認的no改爲yes,就可以密碼驗證登錄
然後用secureCRT連接了