Your browser is out-of-date!

Update your browser to view this website correctly. Update my browser now

Vinllen Chen


但行好事,莫问前程

linux使用nc命令传输文件

  目的主机的22端口不能使用,于是scp也不能用,想要传文件可以使用nc命令:

目的主机:nc -l 8765 > outFilename
源主机:nc 目的主机ip 目的主机nc端口 < inFilename

其中目的主机端口开大一点,别占用系统端口就好了。
  nc还有很多很强大的功能,比如聊天,扫描端口等等,具体可以参考man。

参考

http://www.linuxso.com/command/nc.html


About the author

vinllen chen

Beijing, China

格物致知


Discussions

comments powered by Disqus