Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/ssh/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
通过SSH在特定目录中使用curl?_Curl_Ssh - Fatal编程技术网

通过SSH在特定目录中使用curl?

通过SSH在特定目录中使用curl?,curl,ssh,Curl,Ssh,我想通过Curl下载一个文件。但是,我没有完整的URL,而是通过SSH连接到包含该文件的目录。如何做到这一点?尝试使用scp,它代表secore copy。您可以使用与ssh登录相同的凭据以及文件路径 scp username@host:folder/file.bsp /local/folder 一定是卷曲的吗?如果您连接到文件位置w/ssh,为什么不直接使用scp?@Politank-Z我只使用了Curl,但是如果有任何其他方法,我是开放的!

我想通过Curl下载一个文件。但是,我没有完整的URL,而是通过SSH连接到包含该文件的目录。如何做到这一点?

尝试使用scp,它代表secore copy。您可以使用与ssh登录相同的凭据以及文件路径

scp username@host:folder/file.bsp /local/folder

一定是卷曲的吗?如果您连接到文件位置w/ssh,为什么不直接使用scp?@Politank-Z我只使用了Curl,但是如果有任何其他方法,我是开放的!