有没有办法使用C ++在没有sshpass的情况下使用密码发送scp命令? [处于保留状态]

问题描述 投票:0回答:1

有没有办法使用C ++在没有sshpass的情况下使用密码发送scp命令?

示例命令:

scp file.txt [email protected]:password C:/Users
c++ scp
1个回答
0
投票

没有在scp的同一命令行中发送密码的方法。无论您使用哪种方式/脚本/程序/编程语言来调用scp,都是如此。

scp会提示您输入密码,或者您应该设置passwordless-ssh-login

© www.soinside.com 2019 - 2024. All rights reserved.