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 /tmp/ 
% please note ! at the beginning.

这将提示您输入密码。因此,如果需要,可以为passwordless scp命令设置公钥身份验证。

关于image - 使用matlab在ssh服务器中读取远程图像,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26517994/

相关文章:

ios - TinyMCE 图片上传不适用于 iOS (Safari)

vba - Excel 2007 VBA - Avaya CMS - SSH 破坏脚本

ssh - 如何解决 "sign_and_send_pubkey: signing failed: agent refused operation"?

matlab - || 的操作数and && 运算符必须可转换为逻辑标量值

python - 零维 numpy.ndarray : only element is a 2D array : how to access it?

linux - cd 到 root - 在 Matlab 脚本中不起作用

powershell - 通过::1 端口 22 重置连接(Windows 10 + PowerShell/cmd + OpenSSH)

javascript - 简单的 JavaScript 交换函数

jquery - jQuery 中的动画标题

Java:单元测试图像操作