【发布时间】:2022-11-15 18:09:07
【问题描述】:
我正在尝试在需要 PowerShell 的网络驱动器上使用 SCP。但是当我输入我的 SCP 命令时,它说
CMD.EXE was started with the above path as the current directory.
UNC paths are not supported. Defaulting to Windows directory.
The system cannot find the path specified.
0 file(s) copied.
使用 SCP 时如何防止 PowerShell 恢复为 cmd.exe?
编辑:这是我的命令,虽然我不明白为什么这会有所作为。
scp -i ~/.ssh/my_key.pem \\my\network\drive\toy.py user@10.xxx.xxx.xx:/home/user/target/path/toy.py
【问题讨论】:
标签: windows powershell cmd scp