我正在尝试将文件从ec2实例复制到本地计算机。这是命令:
scp -v -i commoncrawl_practice.pem ec2-user@ec2-54-86-8-91.compute-1.amazonaws.com:/home/ec2-user/testfile .
这就是它挂起的地方:
debug1: Trying private key: commoncrawl_practice.pem
debug1: read PEM private key done: type RSA
debug1: Authentication succeeded (publickey).
Authenticated to ec2-54-86-8-91.compute-1.amazonaws.com ([54.86.8.91]:22).
debug1: channel 0: new [client-session]
debug1: Requesting no-more-sessions@openssh.com
debug1: Entering interactive session.
debug1: Sending environment.
debug1: Sending env LANG = en_US.UTF-8
debug1: Sending command: scp -v -f /home/ec2-user/testfile
提前致谢。
答案 0 :(得分:0)
尝试SFTP作为SCP的替代方案。
答案 1 :(得分:0)
检查目的地是否有〜/ .bashrc文件,将内容打印到终端。如果是,请通过插入
为非交互式shell禁用它SITE_ID
在打印之前。
(https://unix.stackexchange.com/questions/18231/scp-fails-without-error上的解决方案)