Curl fails on sftp password authentication

前端 未结 2 810
梦如初夏
梦如初夏 2021-01-20 08:03

When I manually sftp using username and password it works fine, when using curl it fails. The same script will successfully connect to other servers with no problem. Because

2条回答
  •  萌比男神i
    2021-01-20 08:40

    thanks and for publickey authentication :

    curl -v -k --pubkey ~/.ssh/id_rsa.pub sftp://username@host/
    

提交回复
热议问题