步骤二:
搭建tftp
1、安装server与client
sudo apt-get install tftpd tftp openbsd-inetd
2、新建inetd启动文件
sudo gedit /etc/inetd.conf
tftp dgram udp wait nobody /usr/sbin/tcpd /usr/sbin/in.tftpd /home/hacker/tftpboot # /home/hacker/tftpboot为tftp主目录
3、重新启动inetd服务
sudo /etc/init.d/openbsd-inetd start
4、测试tftpd服务是否成功
tftp localhost
tftp> verbose
应该显示:Verbose mode on.
tftp> trace
应该显示 Packet tracing on.
在/home/hacker 建立tftpdown目录
mkdir /home/hacker/tftpdown
新建文件 2.txt 设置权限
touch 2.txt
chmod 777 2.txt
在 /home/hacker/tftpboot中
新建文件 1.txt
touch 1.txt
chmod 777 1.txt
chmod 777 tftpboot
chmod 777 tftpdown
tftp>get 1.txt 从tftpboot接受文件
如果想向tftpboot上传文件,先在tftpboot中建一个空的2.txt
然后 tftp>put 2.txt
步骤三:
1.首先查看Ubuntu的IP地址,在windows下可以Ping通
2.开启SSH服务,实现linux与windows之间的文件传输
Windows中,从网上下载SSHSecureShellClient-3.2.9,界面如图:
3.Ubuntu中如果使本机开放SSH服务就需要安装openssh-server
sudo apt-get install openssh-server
然后确认sshserver是否启动了:
ps –e |grep ssh
如果看到sshd,那说明ssh-server已经启动了。
4.开启到linux连接,如下:
点击Quick connect,在对话框中根据自己的情况进行输入
5. 输入你的密码。
6.这样就登陆成功了。
7.上传文件