获取“找不到命令"使用 pscp 命令时 [英] Getting "Command not found" when using pscp command

查看:102
本文介绍了获取“找不到命令"使用 pscp 命令时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 PuTTY pscp 将项目文件夹传输到 AWS 实例.

I am transferring a project folder to AWS instance using PuTTY pscp.

我可以使用 .ppk 公钥文件和 ssh 命令成功打开并登录进行连接.

I am able to connect using .ppk public keys file and ssh command opened successfully and logged-in.

这里我使用命令来传输文件夹:

Here I am using command to transfer folder:

pscp -r -i C:\path-to-my-keys\converted-pem-keys.ppk d:\MyDevelopment\myproj ec2-user@xx.xxx.xxx.xxx:/home/ec2-user/myproj

显示:

 pscp: Command not found.

PuTTY 文件夹的路径在环境变量中设置.有什么想法吗?

Path to PuTTY folder is set in Environment variables. Any idea?

推荐答案

Command not found" 是常见的 *nix shell 错误消息.什么表明您可能在 PuTTY(远程)终端中键入了 pscp 命令.

"Command not found" is a common *nix shell error message. What indicates that you probably type the pscp command in PuTTY (remote) terminal.

但是 pscp 是 Windows 应用程序.您必须在(本地)Windows 控制台 (cmd.exe) 中键入 pscp 命令.

But pscp is Windows application. You have to type your pscp command in (local) Windows console (cmd.exe).

这篇关于获取“找不到命令"使用 pscp 命令时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆