【发布时间】:2017-02-17 08:54:54
【问题描述】:
所以我正在研究 power shell 并在 C 驱动器中创建了 shell 脚本文件,现在我想使用 plink.exe 通过使用 power shell 将该文件发送到 Linux 机器。 尝试以下命令
PS C:\> .\plink.exe -pw -i "R***t" root@192.168.1.12 ".\adduser.sh"
Unable to open connection:
PS C:\> .\plink.exe -i ssh "R***t" root@192.168.1.12 ".\adduser.sh"
PS C:\> .\plink.exe -i ssh "R***t" -P 22 root@192.168.1.12 ".\adduser.sh"
Unable to open connection:
PS C:\> .\plink.exe -i ssh "R***t" -P 22 root@192.168.1.12 ".\adduser.sh"
Unable to open connection:
基本上我们如何通过 power shell 使用 g plink.exe 连接到 Linux 机器
如果我们需要任何 sshkey,让我确认一下,我们如何生成 ssh plink.exe 的密钥以及 ssh 密钥需要使用哪些选项
如果有任何有价值的建议,请提前感谢.....
【问题讨论】:
-
您是否正在尝试将
kdump_config.sh文件“上传”到Linux 机器上? -
是的,我正在尝试上传
标签: linux powershell ssh putty