引用下一篇文章:
Field Notice: Cisco IOS TFTP Client Cannot Transfer Files Larger than 16MB in Size
cisco IOS tftp客户端 不能够传输大于16MB的文件我至少尝试使用 Tftpd32 and Tftpd64,cisco tftp server,还是linux下的tftp服务
都是会在传输中断开
最后我只能换其他办法,用FTP去完成任务
但是FTP也是不容易使用的
XYJ-C2960_9#copy flash:c2960-lanbasek9-mz.150-2.SE8.bin ftp://ftp:@172.16.2.163
Address or name of remote host [172.16.2.163]?
Destination filename [c2960-lanbasek9-mz.150-2.SE8.bin]?
Writing c2960-lanbasek9-mz.150-2.SE8.bin
%Error opening ftp://*****@172.16.2.163/c2960-lanbasek9-mz.150-2.SE8.bin (Incorrect Login/Password)
XYJ-C2960_9#copy flash:c2960-lanbasek9-mz.150-2.SE8.bin tftp:
Address or name of remote host []? 172.16.2.163
Destination filename [c2960-lanbasek9-mz.150-2.SE8.bin]?
!!.!.!.!!.!.!.....
%Error writing tftp://172.16.2.163/c2960-lanbasek9-mz.150-2.SE8.bin (Timed out)...
其实我想实现的是,FTP服务器,允许匿名登录,并且有上传权限即可,
CentOS 6.3 下 vsftpd 匿名用户访问配置
可是没办法配置成功,最终采用了这种由用户登录的办法。以下是FTP的配置办法,有用户列表的办法
使用 yum 安装 vsftpd:
sudo yum install vsftpd
如果需要连接其他 FTP 服务器,则可以安装 FTP 客户端。
sudo yum install ftp
添加用户
adduser userftp
passwd userftp
禁止用户的 ssh 登录权限,只允许 FTP 访问:
usermod -s /sbin/nologin userftp
配置 VSFTP
打开配置文件:
sudo vi /etc/vsftpd/vsftpd.conf
关闭匿名访问:
anonymous_enable=NO
去掉 local_enable 的注释,修改为开启:
local_enable=YES
限制用户仅能访问自己的主目录:
chroot_local_user=YES
设置用户的主目录:(不设置时,默认为用户的家目录/home/userftp)
local_root=/data/test
重启服务:
sudo service vsftpd restart
设置开机自启动:
chkconfig vsftpd on
连接测试
ftp userftp@112.126.74.124
ftp> pwd
Remote directory: /home/userftp
ftp> quit
221 Goodbye.
最后show出我的成功案例
ftp://username:password@172.16.1.1
XYJ-C2960_9#copy flash:c2960-lanbasek9-mz.150-2.SE8.bin ftp://imageup:!@#admin@172.16.1.1
Address or name of remote host [172.16.2.163]?
Destination filename [c2960-lanbasek9-mz.150-2.SE8.bin]?
Writing c2960-lanbasek9-mz.150-2.SE8.bin !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
11834846 bytes copied in 48.864 secs (242200 bytes/sec)
没有评论:
发表评论