我想在设置中测试一些物理链接。我可以用来测试这个的软件工具需要一个块设备来读/写。我可用的块设备无法使物理链路饱和,因此我无法对其进行全面测试。
我知道我可以设置一个由文件支持的虚拟块设备。所以我的想法是以某种方式将虚拟块设备设置为 /dev/null 但问题当然是我无法从中读取。有没有一种方法可以设置一个写入 /dev/null 但在读取时总是返回零的虚拟块设备?
感谢您的任何帮助!
我现在已经浪费了一个多小时,我认为这应该很简单......
我有一个 azure 网站,它允许我使用 sftp 连接和部署到它。我可以使用 FileZilla 通过以下设置很好地连接到它:
不过,我不想使用 FileZilla 连接到它。我想使用命令行移动文件。我一直在尝试使用sftp
,ftp
并scp
均无功而返。最后,他们都失败了:
$ sftp -v -oPort=990 user@xxxxx.ftp.azurewebsites.windows.net
OpenSSH_7.9p1, OpenSSL 1.0.2r 26 Feb 2019
debug1: Reading configuration data /home/rg/.ssh/config
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 17: Applying options for *
debug1: Connecting to xxxxxxx.azurewebsites.windows.net [xxx.xxx.xxx.xxx] port 990.
debug1: Connection established.
debug1: identity file /home/rg/.ssh/id_rsa type 0
debug1: identity …
Run Code Online (Sandbox Code Playgroud)