Image 用matlab在ssh服务器上读取远程图像

Image 用matlab在ssh服务器上读取远程图像,image,matlab,ssh,Image,Matlab,Ssh,是否可以在matlab代码中使用ssh在远程服务器中读取图像 我的意思是,我想这样做,但Matlab不允许: image_file=strcat('sftp://user@ssh_server/user/images/image_name.tif'); imread(image_file); 我可以不使用密码登录此ssh服务器。假设您在linux/unix上,您可以使用matlab中的scp获取文件,例如 !scp username@localhost:/tmp/source/test.png

是否可以在matlab代码中使用ssh在远程服务器中读取图像

我的意思是,我想这样做,但Matlab不允许:

image_file=strcat('sftp://user@ssh_server/user/images/image_name.tif');
imread(image_file);

我可以不使用密码登录此ssh服务器。

假设您在linux/unix上,您可以使用matlab中的
scp
获取文件,例如

!scp username@localhost:/tmp/source/test.png /tmp/ 
% please note ! at the beginning.
这将提示您输入密码。因此,如果需要,可以为scp命令设置公钥身份验证