当你尝试使用SCP(Secure Copy Protocol)命令进行文件传输时,遇到“permission denied (publickey,gssapi-keyex,gssapi-with-mic,password)”错误,这通常意味着SSH客户端无法通过公钥认证来访问远程服务器。以下是几个可能的解决步骤: 检查SSH密钥: 确保你的本地计算机上已经生成了SS
当ssh禁用密码登录时,你的scp会报 ``` xxx@xxx.xxx.xxx.xxx:Permission denied (publickey,gssapi-with-mic,gssapi-keyex) ``` 这时候你只需要改写命令 ``` scp -i ~/.ssh/jtm.pem xxx@xxx.xxx.xxx.xxx:~/opencv.zip opencv.zip ```