3天来,我一直在尝试建立一个sFTP连接以将文件上传到客户端服务器。我正在使用这个:https://gist.github.com/svett/b7f56afc966a6b6ac2fc唯一不同的是我添加了:sshConfig:=&ssh.ClientConfig{User:"0000003579",Auth:[]ssh.AuthMethod{//SSHAgent(),PublicKeyFile("C:\\GoDev\\src\\Texel.ca\\Bnc_Ftp\\.ssh\\id_rsa"),},HostKeyCallback:ssh.InsecureIgnoreHostKey(),