你电脑没装 pscp / sshpass,怎么传文件到ssh?

发布时间:2026/6/7 15:02:17

你电脑没装 pscp / sshpass,怎么传文件到ssh? py -3 -m pip install paramiko -q py -3 -c import paramiko c paramiko.SSHClient() c.set_missing_host_key_policy(paramiko.AutoAddPolicy()) c.connect(11.1.1.1, usernameAI创造财富, passwordAI创造财富, timeout30) s c.open_sftp() s.put(rC:\Users\DeepSkaiWeb\index.html, /var/1i/index.html) s.close() c.close() print(上传成功! 打开 https://deepskai.cn/ 按 CtrlF5 强刷)

相关新闻