读取剪贴板图片然后通过sftp上传到指定主机的指定位置
创建config.yml
文件然后执行脚本
privateKeyPath: xxx\xxx\xxx
imgSavePath: xxx\xxx\xxx
host: 1.2.3.4
port: 22
userName: root
serverPath: xxx\xxx\xxx
webPath: https://www.xxx.com/img
参数名 | 含义 |
---|---|
privateKeyPath | 私钥位置 |
imgSavePath | 剪贴板文件临时保存位置 |
host | 主机ip |
port | ssh端口 |
userName | 登录用户名 |
serverPath | 远程主机保存位置 |
webPath | 上传完毕后复制到剪贴板的前缀 |