windows与ubuntu虚拟机之间TFTP文件传输

1、 目标

实现 win7下安装的虚拟机ubuntu 14.04之间的文件传输。

2、ubuntu 下 TFTP 安装

tftpd-hpa : 服务器
tftp-hpa : 客户端

joey@ubuntu:~$ sudo apt-get install tftpd-hpa tftp-hpa

3、ubuntu下 新建TFTP传输目录

joey@ubuntu:~$ mkdir tftpboot
joey@ubuntu:~$ chmod 777 tftpboot/
joey@ubuntu:~$ cd tftpboot/

4 、ubuntu下 修改配置文件

root@ubuntu:~/tftpboot# cat /etc/default/tftpd-hpa
# /etc/default/tftpd-hpa

TFTP_USERNAME="tftp"
TFTP_DIRECTORY="/home/joey/tftpboot" #传输目录
TFTP_ADDRESS=":69"
#TFTP_OPTIONS="--secure"
TFTP_OPTIONS="-l -c -s" #用这种方式,不然客户端不能put
root@ubuntu:~/tftpboot# 

5、 ubuntu下 重启服务

service tftpd-hpa restart 

6、windows 工具 Tftpd32

在这里下载:
Tftpd32-4.52-setup

7、window为服务器 ,ubuntu为客户端

在这里插入图片描述

8、ubuntu为服务器 , window 为客户端

在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/amwha/article/details/88921021