在您的终端中,键入:
scp your_username@remotehost.edu:foobar.txt /local/dir
相应地替换用户名,主机,远程文件名和本地目录。
如果要访问EC2(或其他需要使用私钥进行身份验证的服务),请使用以下
-i选项:
scp -i key_file.pem your_username@remotehost.edu:/remote/dir/foobar.txt /local/dir

在您的终端中,键入:
scp your_username@remotehost.edu:foobar.txt /local/dir
相应地替换用户名,主机,远程文件名和本地目录。
如果要访问EC2(或其他需要使用私钥进行身份验证的服务),请使用以下
-i选项:
scp -i key_file.pem your_username@remotehost.edu:/remote/dir/foobar.txt /local/dir