0
我有一台运行Amazon Linux的ec2。我有一个crt,需要将其上传到/ etc/pki/tls/certs。将crt上传到运行Amazon Linux的ec2
SFTP说权限被拒绝,我无法更改权限。
我有一个SSH连接,但我不知道如何通过终端上传文件。
我看着涉及SCP,并试图建议...
scp custom.crt [email protected]:/etc/pki/tls/certs
我......
The authenticity of host 'ip-172-31-1-182 (172.31.1.182)' can't be established.
ECDSA key fingerprint is xxxxxxxxx
ECDSA key fingerprint is xxxxxxxxx
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'ip-172-31-1-182,172.31.1.182' (ECDSA) to the list of known hosts.
Permission denied (publickey).
lost connection
有什么错误的,我scp命令?
是否有替代方案?
感谢您的回复。当我输入第一个命令,我得到......“ssh:无法解析主机名ip-172-31-1-182:节点名或服务名提供,或不知道 失去连接”我发出命令,当我' m在我的本地目录中包含custom.crt。但我不在SSH会话中。那是对的吗? – webguy
我刚刚在SSH会话中尝试了scp命令,并且获得了“Permission denied(publickey).lost connection” – webguy
** ip-172-31-1-182 **是私有IP(仅在网络中可访问)。使用公共IP连接或使用VPN连接 –