centos tftp的tftp默认只有root能连接吗

拒绝访问 | www.sa-log.com | 百度云加速
请打开cookies.
此网站 (www.sa-log.com) 的管理员禁止了您的访问。原因是您的访问包含了非浏览器特征(3f7c-ua98).
重新安装浏览器,或使用别的浏览器centos7安装tftp服务器
时间: 22:52:01
&&&& 阅读:636
&&&& 评论:
&&&& 收藏:0
标签:1.安装:
su  #进入root
yum install xinetd
yum install tftp
&yum install tftp-server
2.配置tftp
vim /etc/xinetd.d/tftp
修改下面红框部分!
server_agrs改为自己准备存放的目录,并修改所设文件夹的权限
disable改为no
3.重启tftp服务
systemctl restart xinetd.service
netstat -a | grep tftp &#查看是否开启
&或者:netstat -tunap | grep :69
4.测试tftp
windows下ping一下linux的ip看是否可以通;
ping通之后关闭linux的防火墙:&systemctl stop firewalld.service
启动windows客户端。
&标签:原文地址:http://www.cnblogs.com/boyiliushui/p/5140664.html
&&国之画&&&& &&&&chrome插件&&
版权所有 京ICP备号-2
迷上了代码!2021人阅读
linux(4)
最近在centos 7上部署TFTP服务器,遇到了客户端超时没有响应的问题,netstat -a | grep tftp也没有回应,
方法记录如下:
1、安装tftp服务器
TFTP服务是通过xintd运行的
# yum install xinetd
# yum install tftp# yum install tftp-server
2.建立tftpboot目录,设置TFTPBOOT的访问权限
# mkdir /lib/tftpboot
/lib/tftpboot
3.配置文件
vi /etc/xinetd.d/tftp
修改下server_args为你自己的TFTPBOOT目录,即FTP文件的根目录;缺省情况下,TFTP服务是禁用的,把disable的值改为no。
文件如下:
service tftp{
socket_type
=/usr/sbin/in.tftpd
server_args
=-s /lib/tftpboot -c
per_source
=IPv4}说明:修改项server_args= -s
-c,其中&path&处可以改为你的tftp-server的根目录
4.开放udp 69端口 --不然客户端会连接不上,显示超时
加入iptables
# vi /etc/sysconfig/iptables
-A INPUT -p udp
--dport 69 -j ACCEPT
重启iptables
# service iptables
5.设置服务
#chkconfig tftp
#chkconfig xinetd
# service xinetd
# service tftp restart
6.selinux机制可能出现的问题:
1.出现TFTP error: 'Permission denied' (0)的解决
这个是由于selinux机制引起的不是文件夹的权限问题。
/etc/sysconfig/selinux 修改为:SELINUX=permissive 或者关闭SELINUX : SELINUX=disabled
如果不想重启系统,执行:
sudo setenforce
7.windows 客户端测试
c:\&tftp -i x.x.x.x put temp.txt
传输成功: 1 秒 3 字节,3 字节/秒
成功!!!
netstat -na | grep 69
显示69端口下次自动登录
现在的位置:
& 综合 & 正文
在CentOS 5.3下安装配置tftp服务
本人在centOS6.2下配置成功。
原文链接:
向作者致敬!
以下照抄!
==================================================
在CentOS 5.3下安装配置tftp服务 过程如下:
1. 挂载CDROM
[root@localhost mnt]# ls /dev/cdrom
/dev/cdrom
[root@localhost mnt]# mount /dev/cdrom /mnt/cdrom/
2. 安装xinetd
[root@localhost cdrom]# cd CentOS/
[root@localhost CentOS]# ls *inet*
xinetd-2.3.14-10.el5.i386.rpm
[root@localhost CentOS]# rpm -ivh xinetd-2.3.14-10.el5.i386.rpm
3. 安装tftp
[root@localhost CentOS]# ls *ftp*
ftp-0.17-35.el5.i386.rpm tftp-0.42-3.1.el5.centos.i386.rpm
gftp-2.0.18-3.2.2.i386.rpm tftp-server-0.42-3.1.el5.centos.i386.rpm
lftp-3.5.1-2.fc6.i386.rpm vsftpd-2.0.5-12.el5.i386.rpm
[root@localhost CentOS]# rpm -ivh tftp-server-0.42-3.1.el5.centos.i386.rpm
[root@localhost CentOS]# rpm -ivh tftp-0.42-3.1.el5.centos.i386.rpm
4. 安装完成,查看一下
[root@localhost CentOS]# rpm -qa|grep tftp
tftp-server-0.42-3.1.el5.centos
tftp-0.42-3.1.el5.centos
5. 修改配置文件
[root@localhost CentOS]# vim /etc/xinetd.d/tftp
# default: off
# description: The tftp server serves files using the trivial file transfer
# protocol. The tftp protocol is often used to boot diskless
# workstations, download configuration files to network-aware printers,
# and to start the installation process for some operating systems.
service tftp
socket_type = dgram
protocol = udp
wait = yes
user = root
server = /usr/sbin/in.tftpd
server_args = -s /tftpboot
disable = no
per_source = 11
cps = 100 2
flags = IPv4
6. 重启xinetd,并配置tftp开机启动
[root@localhost CentOS]# service xinetd restart
[root@localhost CentOS]# setup
[root@localhost /]# chmod 777 /tftpboot/
[root@localhost ~]# service xinetd restart
[root@localhost ~]# cd /tftpboot/
[root@localhost tftpboot]# ls
a.txt ramdisk_sjx_0.7.3.gz
[root@localhost tftpboot]# vim a.txt
[root@localhost tftpboot]# cd
[root@localhost ~]# tftp 10.10.143.103
tftp& get a.txt
[root@localhost ~]# ls
a.txt install.log remove work
[root@localhost ~]# more a.txt
aaaaaaaaaaaaaa
【上篇】【下篇】}

我要回帖

更多关于 centos7 默认root登录 的文章

更多推荐

版权声明:文章内容来源于网络,版权归原作者所有,如有侵权请点击这里与我们联系,我们将及时删除。

点击添加站长微信