SCP 日志文件到服务器
SCP log file to server
您好,我正在尝试为 SCP 提供一个日志文件,但我一直收到错误
Warning: Identity file ids-east-1.pem not accessible: No such file or directory.
ec2-11.com: Permission denied (publickey).
lost connection
我已经尝试了前面介绍的所有解决方案,但似乎无法找出问题所在。
我使用的密钥是:
scp -r -i ids-east-1.pem ~/int/resources/tests/tasks/lib/testing.log ec2-user@11.com:/home/wn/shelf/wrDb/fractions
提醒一下 - 我可以使用以下方法从此服务器获取日志文件:
scp -i ids-east-1.pem ec2-user@11.com:/home/wn/shelf/wrDb/fractions/chrono.log ~/Desktop/aws_chrono.log
如果一个命令有效,但另一个给你:
Warning: Identity file ids-east-1.pem not accessible: No such file or directory.
您可能不会运行来自同一目录的命令。尝试完全指定密钥路径(类似于):
scp -i ~/.ssh/ids-east-1.pem ...
您好,我正在尝试为 SCP 提供一个日志文件,但我一直收到错误
Warning: Identity file ids-east-1.pem not accessible: No such file or directory.
ec2-11.com: Permission denied (publickey).
lost connection
我已经尝试了前面介绍的所有解决方案,但似乎无法找出问题所在。 我使用的密钥是:
scp -r -i ids-east-1.pem ~/int/resources/tests/tasks/lib/testing.log ec2-user@11.com:/home/wn/shelf/wrDb/fractions
提醒一下 - 我可以使用以下方法从此服务器获取日志文件:
scp -i ids-east-1.pem ec2-user@11.com:/home/wn/shelf/wrDb/fractions/chrono.log ~/Desktop/aws_chrono.log
如果一个命令有效,但另一个给你:
Warning: Identity file ids-east-1.pem not accessible: No such file or directory.
您可能不会运行来自同一目录的命令。尝试完全指定密钥路径(类似于):
scp -i ~/.ssh/ids-east-1.pem ...