1.关闭UseDNS
sudo sed -i '$a\UseDNS no' /etc/ssh/sshd_config
sudo service sshd restart
2.PUTTY快捷登陆
putty.exe -ssh -l pi -pw raspberry -P 22 192.168.4.12
%windir%\system32\cmd.exe /c start putty.exe -l pi -pw raspberry -P 22 192.168.4.12
3. PUTTY密匙登陆。
putty.exe -ssh -i myppk.ppk -l pi -P 22 192.168.4.12
服务器设置: