root@qjw-VirtualBox:~# ssh test@192.168.1.7 "cmd /c dir c:\\"
test@192.168.1.7's password:
驱动器 C 中的卷没有标签。
卷的序列号是 887F-A0D8
c:\ 的目录
2013/11/24 09:37 <DIR> DevKit
2013/10/15 22:10 <DIR> Intel
2009/07/14 11:20 <DIR> PerfLogs
2013/12/20 22:45 <DIR> Program Files
2014/01/10 20:36 <DIR> Program Files (x86)
2013/11/24 09:33 <DIR> Ruby193
2013/10/15 00:36 <DIR> Users
1980/01/01 00:01 <DIR> Windows
0 个文件 0 字节
8 个目录 2,704,166,912 可用字节
root@qjw-VirtualBox:~# find / -mindepth 1 -maxdepth 1 | while read line;do echo $line;done
/srv
/boot
/sbin
/etc
find / -mindepth 1 -maxdepth 1 | while read line;do ssh test@192.168.1.7 "cmd /c dir c:\\"; done
find / -mindepth 1 -maxdepth 1 | while read line;do ssh test@192.168.1.7 "cmd /c dir c:\\" <&-; done