{"id":10900,"date":"2025-04-18T18:18:23","date_gmt":"2025-04-18T10:18:23","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/10900.html"},"modified":"2025-04-18T18:18:23","modified_gmt":"2025-04-18T10:18:23","slug":"linux-%e4%b8%8b-ftp-%e5%b7%a5%e5%85%b7%e7%9a%84%e5%ae%89%e8%a3%85%e5%92%8c%e4%bd%bf%e7%94%a8%e6%96%b9%e5%bc%8f%e8%af%a6%e8%a7%a3%ef%bc%9a%e9%99%84%e6%9c%8d%e5%8a%a1%e5%99%a8%e6%96%87%e4%bb%b6%e5%a4%87","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/10900.html","title":{"rendered":"Linux \u4e0b FTP \u5de5\u5177\u7684\u5b89\u88c5\u548c\u4f7f\u7528\u65b9\u5f0f\u8be6\u89e3\uff1a\u9644\u670d\u52a1\u5668\u6587\u4ef6\u5907\u4efd\u5b9e\u6218"},"content":{"rendered":"<h2>Linux \u4e0b FTP \u5de5\u5177\u7684\u5b89\u88c5\u548c\u4f7f\u7528\u65b9\u5f0f\u8be6\u89e3&#xff1a;\u9644\u670d\u52a1\u5668\u6587\u4ef6\u5907\u4efd\u5b9e\u6218<\/h2>\n<h3>\u5f15\u8a00<\/h3>\n<p>\u5728Linux\u670d\u52a1\u5668\u7ba1\u7406\u4e2d&#xff0c;FTP&#xff08;File Transfer Protocol&#xff09; \u662f\u7ecf\u5178\u7684\u6587\u4ef6\u4f20\u8f93\u534f\u8bae&#xff0c;\u5e38\u7528\u4e8e\u6587\u4ef6\u5907\u4efd\u3001\u4ee3\u7801\u90e8\u7f72\u548c\u8d44\u6e90\u5171\u4eab\u3002\u5c3d\u7ba1\u73b0\u4ee3\u66f4\u63a8\u8350\u4f7f\u7528SFTP\/SCP&#xff08;\u57fa\u4e8eSSH\u7684\u5b89\u5168\u534f\u8bae&#xff09;&#xff0c;\u4f46\u5728\u7279\u5b9a\u573a\u666f\u4e0bFTP\u4ecd\u6709\u5176\u4ef7\u503c\u3002\u672c\u6587\u5c06\u8be6\u89e35\u6b3e\u4e3b\u6d41FTP\u5de5\u5177\u7684\u5b89\u88c5\u4e0e\u4f7f\u7528&#xff0c;\u5e76\u901a\u8fc7\u5b9e\u6218\u6848\u4f8b\u6f14\u793a\u5982\u4f55\u5c06\u670d\u52a1\u5668\u6587\u4ef6\u81ea\u52a8\u5907\u4efd\u5230FTP\u670d\u52a1\u5668\u3002<\/p>\n<h3>\u4e00\u3001FTP \u5de5\u5177\u5bf9\u6bd4\u4e0e\u9009\u62e9<\/h3>\n<table>\n<tr>\u5de5\u5177\u534f\u8bae\u652f\u6301\u6838\u5fc3\u4f18\u52bf\u9002\u7528\u573a\u666f<\/tr>\n<tbody>\n<tr>\n<td>ftp<\/td>\n<td>FTP<\/td>\n<td>\u539f\u751f\u81ea\u5e26&#xff0c;\u7b80\u5355\u6613\u7528<\/td>\n<td>\u57fa\u7840\u6587\u4ef6\u4f20\u8f93<\/td>\n<\/tr>\n<tr>\n<td>lftp<\/td>\n<td>FTP\/FTPS\/SFTP<\/td>\n<td>\u652f\u6301\u955c\u50cf\u540c\u6b65\u3001\u65ad\u70b9\u7eed\u4f20<\/td>\n<td>\u590d\u6742\u5907\u4efd\u4efb\u52a1<\/td>\n<\/tr>\n<tr>\n<td>ncftp<\/td>\n<td>FTP\/FTPS<\/td>\n<td>\u9ad8\u901f\u4f20\u8f93&#xff0c;\u652f\u6301\u811a\u672c\u7f16\u7a0b<\/td>\n<td>\u5927\u89c4\u6a21\u6587\u4ef6\u4f20\u8f93<\/td>\n<\/tr>\n<tr>\n<td>curl<\/td>\n<td>FTP\/FTPS<\/td>\n<td>\u547d\u4ee4\u884c\u745e\u58eb\u519b\u5200&#xff0c;\u652f\u6301\u7ba1\u9053\u64cd\u4f5c<\/td>\n<td>\u811a\u672c\u96c6\u6210<\/td>\n<\/tr>\n<tr>\n<td>wget<\/td>\n<td>FTP\/FTPS<\/td>\n<td>\u4e0b\u8f7d\u4e13\u7528&#xff0c;\u652f\u6301\u65ad\u70b9\u7eed\u4f20<\/td>\n<td>\u5355\u5411\u4e0b\u8f7d\u4efb\u52a1<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3>\u4e8c\u3001\u5de5\u5177\u5b89\u88c5\u6307\u5357<\/h3>\n<h4>2.1 \u57fa\u7840\u5de5\u5177\u5b89\u88c5&#xff08;\u4ee5Ubuntu\u4e3a\u4f8b&#xff09;<\/h4>\n<p><span class=\"token comment\"># \u5b89\u88c5ftp\u5ba2\u6237\u7aef<\/span><br \/>\n<span class=\"token function\">sudo<\/span> <span class=\"token function\">apt<\/span> <span class=\"token function\">install<\/span> <span class=\"token function\">ftp<\/span><\/p>\n<p><span class=\"token comment\"># \u5b89\u88c5\u589e\u5f3a\u5de5\u5177lftp<\/span><br \/>\n<span class=\"token function\">sudo<\/span> <span class=\"token function\">apt<\/span> <span class=\"token function\">install<\/span> lftp<\/p>\n<p><span class=\"token comment\"># \u5b89\u88c5ncftp<\/span><br \/>\n<span class=\"token function\">sudo<\/span> <span class=\"token function\">apt<\/span> <span class=\"token function\">install<\/span> ncftp<\/p>\n<p><span class=\"token comment\"># curl\u548cwget\u901a\u5e38\u5df2\u9884\u88c5<\/span><br \/>\n<span class=\"token function\">sudo<\/span> <span class=\"token function\">apt<\/span> <span class=\"token function\">install<\/span> <span class=\"token function\">curl<\/span> <span class=\"token function\">wget<\/span><\/p>\n<h4>2.2 \u6e90\u7801\u5b89\u88c5&#xff08;\u9002\u7528\u4e8e\u65e0\u5305\u7ba1\u7406\u5668\u573a\u666f&#xff09;<\/h4>\n<p>\u4ee5lftp\u4e3a\u4f8b&#xff1a;<\/p>\n<p><span class=\"token function\">wget<\/span> https:\/\/lftp.yar.ru\/lftp-4.8.10.tar.gz<br \/>\n<span class=\"token function\">tar<\/span> -zxvf lftp-4.8.10.tar.gz<br \/>\n<span class=\"token builtin class-name\">cd<\/span> lftp-4.8.10<br \/>\n.\/configure <span class=\"token operator\">&amp;&amp;<\/span> <span class=\"token function\">make<\/span> <span class=\"token operator\">&amp;&amp;<\/span> <span class=\"token function\">sudo<\/span> <span class=\"token function\">make<\/span> <span class=\"token function\">install<\/span><\/p>\n<h3>\u4e09\u3001\u57fa\u7840\u64cd\u4f5c&#xff1a;\u8fde\u63a5\u4e0e\u6587\u4ef6\u4f20\u8f93<\/h3>\n<h4>3.1 \u539f\u751f ftp \u5de5\u5177<\/h4>\n<h5>1. \u4ea4\u4e92\u5f0f\u8fde\u63a5<\/h5>\n<p><span class=\"token function\">ftp<\/span> ftp.example.com  <span class=\"token comment\"># \u8fde\u63a5\u670d\u52a1\u5668<\/span><br \/>\n<span class=\"token comment\"># \u8f93\u5165\u7528\u6237\u540d\u548c\u5bc6\u7801&#xff08;\u533f\u540d\u7528\u6237\u53ef\u7528ftp\/\u7a7a\u5bc6\u7801&#xff09;<\/span><\/p>\n<h5>2. \u5e38\u7528\u547d\u4ee4<\/h5>\n<table>\n<tr>\u547d\u4ee4\u672c\u5730\u64cd\u4f5cFTP\u670d\u52a1\u5668\u64cd\u4f5c<\/tr>\n<tbody>\n<tr>\n<td>lcd<\/td>\n<td>\u5207\u6362\u672c\u5730\u76ee\u5f55<\/td>\n<td>cd<\/td>\n<\/tr>\n<tr>\n<td>put<\/td>\n<td>\u4e0a\u4f20\u5355\u4e2a\u6587\u4ef6<\/td>\n<td>mput file*&#xff08;\u6279\u91cf&#xff09;<\/td>\n<\/tr>\n<tr>\n<td>get<\/td>\n<td>\u4e0b\u8f7d\u5355\u4e2a\u6587\u4ef6<\/td>\n<td>mget file*<\/td>\n<\/tr>\n<tr>\n<td>bye<\/td>\n<td>\u9000\u51fa<\/td>\n<td><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h4>3.2 \u589e\u5f3a\u5de5\u5177 lftp<\/h4>\n<h5>1. \u975e\u4ea4\u4e92\u5f0f\u767b\u5f55<\/h5>\n<p>lftp -e <span class=\"token string\">&#034;mirror \/local\/dir \/ftp\/dir; quit&#034;<\/span> -u user,pass ftp.example.com<\/p>\n<h5>2. \u955c\u50cf\u540c\u6b65&#xff08;\u91cd\u70b9\u529f\u80fd&#xff09;<\/h5>\n<p>lftp -e <span class=\"token string\">&#034;mirror -R \/var\/www\/html ftp:\/\/user:pass&#064;ftp.example.com\/backup; quit&#034;<\/span><\/p>\n<ul>\n<li>-R&#xff1a;\u53cd\u5411\u540c\u6b65&#xff08;\u672c\u5730\u2192\u8fdc\u7a0b&#xff09;<\/li>\n<li>&#8211;delete&#xff1a;\u5220\u9664\u8fdc\u7a0b\u591a\u4f59\u6587\u4ef6&#xff08;\u8c28\u614e\u4f7f\u7528&#xff09;<\/li>\n<\/ul>\n<h4>3.3 ncftp \u7684\u9ad8\u901f\u4f20\u8f93<\/h4>\n<p>ncftp -u user -p pass ftp.example.com  <span class=\"token comment\"># \u767b\u5f55<\/span><br \/>\nncftpput -R \/local\/dir remote_dir  <span class=\"token comment\"># \u9012\u5f52\u4e0a\u4f20<\/span><br \/>\nncftpget -c large_file.iso  <span class=\"token comment\"># \u65ad\u70b9\u7eed\u4f20\u4e0b\u8f7d<\/span><\/p>\n<h4>3.4 \u7528 curl \u4e0a\u4f20\u6587\u4ef6<\/h4>\n<p><span class=\"token function\">curl<\/span> -T local_file.txt ftp:\/\/user:pass&#064;ftp.example.com\/remote_path<\/p>\n<h3>\u56db\u3001\u5b9e\u6218\u6848\u4f8b&#xff1a;\u670d\u52a1\u5668\u6587\u4ef6\u81ea\u52a8\u5907\u4efd\u5230FTP<\/h3>\n<h4>4.1 \u51c6\u5907\u5de5\u4f5c<\/h4>\n<li>\n<p>FTP\u670d\u52a1\u5668\u4fe1\u606f&#xff1a;<\/p>\n<ul>\n<li>\u5730\u5740&#xff1a;ftp.backup.com<\/li>\n<li>\u7528\u6237\u540d&#xff1a;backup_user<\/li>\n<li>\u5bc6\u7801&#xff1a;secure_pass<\/li>\n<li>\u8fdc\u7a0b\u76ee\u5f55&#xff1a;\/backup\/website<\/li>\n<\/ul>\n<\/li>\n<li>\n<p>\u672c\u5730\u5f85\u5907\u4efd\u76ee\u5f55&#xff1a;<\/p>\n<p> \/var\/www\/html  <span class=\"token comment\"># \u7f51\u7ad9\u6839\u76ee\u5f55<\/span>\n <\/li>\n<h4>4.2 \u4f7f\u7528 lftp \u5b9e\u73b0\u589e\u91cf\u5907\u4efd<\/h4>\n<h5>\u6b65\u9aa41&#xff1a;\u7f16\u5199\u5907\u4efd\u811a\u672c<\/h5>\n<p><span class=\"token shebang important\">#!\/bin\/bash<\/span><br \/>\n<span class=\"token comment\"># \u6587\u4ef6&#xff1a;\/scripts\/ftp_backup.sh<\/span><\/p>\n<p><span class=\"token assign-left variable\">REMOTE_URL<\/span><span class=\"token operator\">&#061;<\/span><span class=\"token string\">&#034;ftp:\/\/backup_user:secure_pass&#064;ftp.backup.com\/backup\/website&#034;<\/span><br \/>\n<span class=\"token assign-left variable\">LOCAL_DIR<\/span><span class=\"token operator\">&#061;<\/span><span class=\"token string\">&#034;\/var\/www\/html&#034;<\/span><br \/>\n<span class=\"token assign-left variable\">LOG_FILE<\/span><span class=\"token operator\">&#061;<\/span><span class=\"token string\">&#034;\/var\/log\/ftp_backup.log&#034;<\/span><\/p>\n<p>lftp -e <span class=\"token string\">&#034;<br \/>\nmirror -R &#8211;verbose &#8211;only-newer <span class=\"token variable\">$LOCAL_DIR<\/span> <span class=\"token variable\">$REMOTE_URL<\/span>;<br \/>\nbye<br \/>\n&#034;<\/span> <span class=\"token operator\">&gt;&gt;<\/span> <span class=\"token variable\">$LOG_FILE<\/span> <span class=\"token operator\"><span class=\"token file-descriptor important\">2<\/span>&gt;<\/span><span class=\"token file-descriptor important\">&amp;1<\/span><\/p>\n<h5>\u6b65\u9aa42&#xff1a;\u6dfb\u52a0\u6267\u884c\u6743\u9650<\/h5>\n<p><span class=\"token function\">chmod<\/span> &#043;x \/scripts\/ftp_backup.sh<\/p>\n<h5>\u6b65\u9aa43&#xff1a;\u8bbe\u7f6e\u5b9a\u65f6\u4efb\u52a1&#xff08;cron&#xff09;<\/h5>\n<p><span class=\"token function\">crontab<\/span> -e<br \/>\n<span class=\"token comment\"># \u6bcf\u5929\u51cc\u66683\u70b9\u6267\u884c\u5907\u4efd<\/span><br \/>\n<span class=\"token number\">0<\/span> <span class=\"token number\">3<\/span> * * * \/bin\/bash \/scripts\/ftp_backup.sh<\/p>\n<h4>4.3 \u5b89\u5168\u589e\u5f3a&#xff1a;\u4f7f\u7528\u5bc6\u94a5\u8ba4\u8bc1&#xff08;\u66ff\u4ee3\u660e\u6587\u5bc6\u7801&#xff09;<\/h4>\n<p>1. \u751f\u6210SSH\u5bc6\u94a5\u5bf9&#xff08;\u9002\u7528\u4e8eSFTP&#xff09;&#xff1a;<\/p>\n<p>ssh-keygen -t rsa -b <span class=\"token number\">4096<\/span> -f ~\/.ssh\/id_rsa_backup<\/p>\n<p>2. \u914d\u7f6elftp\u4f7f\u7528\u5bc6\u94a5&#xff1a;<\/p>\n<p>lftp sftp:\/\/backup_user&#064;ftp.backup.com -e <span class=\"token string\">&#034;mirror &#8230;&#034;<\/span> -o ssh:identity-file<span class=\"token operator\">&#061;<\/span>~\/.ssh\/id_rsa_backup<\/p>\n<h3>\u4e94\u3001\u9ad8\u7ea7\u6280\u5de7&#xff1a;\u6545\u969c\u5904\u7406\u4e0e\u4f18\u5316<\/h3>\n<h4>5.1 \u65ad\u70b9\u7eed\u4f20<\/h4>\n<p><span class=\"token comment\"># lftp<\/span><br \/>\nlftp -e <span class=\"token string\">&#034;mirror -c \/local\/file remote\/; quit&#034;<\/span> ftp:\/\/server<\/p>\n<p><span class=\"token comment\"># wget<\/span><br \/>\n<span class=\"token function\">wget<\/span> -c ftp:\/\/user:pass&#064;server\/file.iso<\/p>\n<h4>5.2 \u4f20\u8f93\u52a0\u5bc6&#xff08;FTPS&#xff09;<\/h4>\n<p>lftp ftps:\/\/user:pass&#064;ftp.example.com  <span class=\"token comment\"># \u663e\u5f0fFTPS<\/span><br \/>\nncftp &#8211;ssl ftp.example.com  <span class=\"token comment\"># \u9690\u5f0fFTPS<\/span><\/p>\n<h4>5.3 \u76d1\u63a7\u4f20\u8f93\u8fdb\u5ea6<\/h4>\n<p>lftp -e <span class=\"token string\">&#034;mirror &#8211;progress \/local\/dir remote\/; quit&#034;<\/span> ftp:\/\/server<\/p>\n<h3>\u516d\u3001\u5e38\u89c1\u95ee\u9898\u89e3\u51b3\u65b9\u6848<\/h3>\n<h4>6.1 \u8fde\u63a5\u88ab\u62d2\u7edd<\/h4>\n<ul>\n<li>\u539f\u56e0&#xff1a;FTP\u7aef\u53e3\u672a\u5f00\u653e&#xff08;\u9ed8\u8ba420\/21&#xff09;<\/li>\n<li>\u89e3\u51b3&#xff1a;<span class=\"token comment\"># \u68c0\u67e5\u9632\u706b\u5899\u89c4\u5219&#xff08;\u4ee5ufw\u4e3a\u4f8b&#xff09;<\/span><br \/>\n<span class=\"token function\">sudo<\/span> ufw allow <span class=\"token number\">20,21<\/span>\/tcp\n <\/li>\n<\/ul>\n<h4>6.2 \u6743\u9650\u4e0d\u8db3<\/h4>\n<ul>\n<li>\u73b0\u8c61&#xff1a;550 Permission denied<\/li>\n<li>\u89e3\u51b3&#xff1a;<span class=\"token comment\"># \u786e\u4fdd\u8fdc\u7a0b\u76ee\u5f55\u6709\u5199\u5165\u6743\u9650<\/span><br \/>\nlftp<span class=\"token operator\">&gt;<\/span> <span class=\"token function\">mkdir<\/span> remote_dir<br \/>\nlftp<span class=\"token operator\">&gt;<\/span> <span class=\"token function\">chmod<\/span> <span class=\"token number\">755<\/span> remote_dir\n <\/li>\n<\/ul>\n<h4>6.3 \u660e\u6587\u4f20\u8f93\u8b66\u544a<\/h4>\n<ul>\n<li>\u5efa\u8bae&#xff1a;\u6539\u7528SFTP&#xff08;\u57fa\u4e8eSSH\u534f\u8bae&#xff09;&#xff1a;lftp sftp:\/\/user&#064;server  <span class=\"token comment\"># \u5b89\u5168\u52a0\u5bc6\u4f20\u8f93<\/span>\n <\/li>\n<\/ul>\n<h3>\u4e03\u3001\u6700\u4f73\u5b9e\u8df5\u5efa\u8bae<\/h3>\n<li>\n<p>\u4f18\u5148\u4f7f\u7528SFTP&#xff1a;<\/p>\n<ul>\n<li>\u52a0\u5bc6\u4f20\u8f93&#xff0c;\u907f\u514d\u5bc6\u7801\u6cc4\u9732<\/li>\n<li>\u53ef\u590d\u7528SSH\u5bc6\u94a5\u8ba4\u8bc1<\/li>\n<\/ul>\n<\/li>\n<li>\n<p>\u5907\u4efd\u7b56\u7565&#xff1a;<\/p>\n<ul>\n<li>\u589e\u91cf\u5907\u4efd&#xff08;&#8211;only-newer&#xff09;<\/li>\n<li>\u4fdd\u7559\u5386\u53f2\u7248\u672c&#xff08;\u6dfb\u52a0\u65f6\u95f4\u6233&#xff09;&#xff1a;<span class=\"token assign-left variable\">BACKUP_DIR<\/span><span class=\"token operator\">&#061;<\/span><span class=\"token string\">&#034;\/backup\/website_<span class=\"token variable\"><span class=\"token variable\">$(<\/span><span class=\"token function\">date<\/span> &#043;%Y%m%d<span class=\"token variable\">)<\/span><\/span>&#034;<\/span>\n <\/li>\n<\/ul>\n<\/li>\n<li>\n<p>\u76d1\u63a7\u4e0e\u62a5\u8b66&#xff1a;<\/p>\n<ul>\n<li>\u5907\u4efd\u811a\u672c\u6dfb\u52a0\u90ae\u4ef6\u901a\u77e5&#xff1a;<span class=\"token builtin class-name\">echo<\/span> <span class=\"token string\">&#034;Backup failed&#034;<\/span> <span class=\"token operator\">|<\/span> mail -s <span class=\"token string\">&#034;Alert&#034;<\/span> admin&#064;example.com\n <\/li>\n<\/ul>\n<\/li>\n<h3>\u7ed3\u8bed<\/h3>\n<p>FTP\u5de5\u5177\u5728Linux\u4e0b\u7684\u6838\u5fc3\u4ef7\u503c\u5728\u4e8e\u7b80\u5355\u6027\u548c\u517c\u5bb9\u6027&#xff0c;\u800clftp\u51ed\u501f\u5f3a\u5927\u7684\u955c\u50cf\u540c\u6b65\u529f\u80fd\u6210\u4e3a\u5907\u4efd\u9996\u9009\u3002\u4f46\u9700\u7262\u8bb0&#xff1a;\u751f\u4ea7\u73af\u5883\u5e94\u4f18\u5148\u4f7f\u7528SFTP\/SCP\u3002\u901a\u8fc7\u672c\u6587\u7684\u5b9e\u6218\u6848\u4f8b&#xff0c;\u60a8\u53ef\u4ee5\u5feb\u901f\u642d\u5efa\u81ea\u52a8\u5316\u5907\u4efd\u7cfb\u7edf&#xff0c;\u5c06\u670d\u52a1\u5668\u6587\u4ef6\u5b89\u5168\u3001\u9ad8\u6548\u5730\u8fc1\u79fb\u5230FTP\u5b58\u50a8\u4e2d\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1k\u6b21\uff0c\u70b9\u8d5e20\u6b21\uff0c\u6536\u85cf21\u6b21\u3002FTP\u5de5\u5177\u5728Linux\u4e0b\u7684\u6838\u5fc3\u4ef7\u503c\u5728\u4e8e\u7b80\u5355\u6027\u548c\u517c\u5bb9\u6027\uff0c\u800clftp\u51ed\u501f\u5f3a\u5927\u7684\u955c\u50cf\u540c\u6b65\u529f\u80fd\u6210\u4e3a\u5907\u4efd\u9996\u9009\u3002\u751f\u4ea7\u73af\u5883\u5e94\u4f18\u5148\u4f7f\u7528SFTP\/SCP\u3002\u901a\u8fc7\u672c\u6587\u7684\u5b9e\u6218\u6848\u4f8b\uff0c\u60a8\u53ef\u4ee5\u5feb\u901f\u642d\u5efa\u81ea\u52a8\u5316\u5907\u4efd\u7cfb\u7edf\uff0c\u5c06\u670d\u52a1\u5668\u6587\u4ef6\u5b89\u5168\u3001\u9ad8\u6548\u5730\u8fc1\u79fb\u5230FTP\u5b58\u50a8\u4e2d\u3002_linux ftp\u5de5\u5177<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[58,43,44],"topic":[],"class_list":["post-10900","post","type-post","status-publish","format-standard","hentry","category-server","tag-linux","tag-43","tag-44"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Linux \u4e0b FTP \u5de5\u5177\u7684\u5b89\u88c5\u548c\u4f7f\u7528\u65b9\u5f0f\u8be6\u89e3\uff1a\u9644\u670d\u52a1\u5668\u6587\u4ef6\u5907\u4efd\u5b9e\u6218 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/10900.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Linux \u4e0b FTP \u5de5\u5177\u7684\u5b89\u88c5\u548c\u4f7f\u7528\u65b9\u5f0f\u8be6\u89e3\uff1a\u9644\u670d\u52a1\u5668\u6587\u4ef6\u5907\u4efd\u5b9e\u6218 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1k\u6b21\uff0c\u70b9\u8d5e20\u6b21\uff0c\u6536\u85cf21\u6b21\u3002FTP\u5de5\u5177\u5728Linux\u4e0b\u7684\u6838\u5fc3\u4ef7\u503c\u5728\u4e8e\u7b80\u5355\u6027\u548c\u517c\u5bb9\u6027\uff0c\u800clftp\u51ed\u501f\u5f3a\u5927\u7684\u955c\u50cf\u540c\u6b65\u529f\u80fd\u6210\u4e3a\u5907\u4efd\u9996\u9009\u3002\u751f\u4ea7\u73af\u5883\u5e94\u4f18\u5148\u4f7f\u7528SFTP\/SCP\u3002\u901a\u8fc7\u672c\u6587\u7684\u5b9e\u6218\u6848\u4f8b\uff0c\u60a8\u53ef\u4ee5\u5feb\u901f\u642d\u5efa\u81ea\u52a8\u5316\u5907\u4efd\u7cfb\u7edf\uff0c\u5c06\u670d\u52a1\u5668\u6587\u4ef6\u5b89\u5168\u3001\u9ad8\u6548\u5730\u8fc1\u79fb\u5230FTP\u5b58\u50a8\u4e2d\u3002_linux ftp\u5de5\u5177\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/10900.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-04-18T10:18:23+00:00\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/10900.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/10900.html\",\"name\":\"Linux \u4e0b FTP \u5de5\u5177\u7684\u5b89\u88c5\u548c\u4f7f\u7528\u65b9\u5f0f\u8be6\u89e3\uff1a\u9644\u670d\u52a1\u5668\u6587\u4ef6\u5907\u4efd\u5b9e\u6218 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-04-18T10:18:23+00:00\",\"dateModified\":\"2025-04-18T10:18:23+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/10900.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/10900.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/10900.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Linux \u4e0b FTP \u5de5\u5177\u7684\u5b89\u88c5\u548c\u4f7f\u7528\u65b9\u5f0f\u8be6\u89e3\uff1a\u9644\u670d\u52a1\u5668\u6587\u4ef6\u5907\u4efd\u5b9e\u6218\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Linux \u4e0b FTP \u5de5\u5177\u7684\u5b89\u88c5\u548c\u4f7f\u7528\u65b9\u5f0f\u8be6\u89e3\uff1a\u9644\u670d\u52a1\u5668\u6587\u4ef6\u5907\u4efd\u5b9e\u6218 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/10900.html","og_locale":"zh_CN","og_type":"article","og_title":"Linux \u4e0b FTP \u5de5\u5177\u7684\u5b89\u88c5\u548c\u4f7f\u7528\u65b9\u5f0f\u8be6\u89e3\uff1a\u9644\u670d\u52a1\u5668\u6587\u4ef6\u5907\u4efd\u5b9e\u6218 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1k\u6b21\uff0c\u70b9\u8d5e20\u6b21\uff0c\u6536\u85cf21\u6b21\u3002FTP\u5de5\u5177\u5728Linux\u4e0b\u7684\u6838\u5fc3\u4ef7\u503c\u5728\u4e8e\u7b80\u5355\u6027\u548c\u517c\u5bb9\u6027\uff0c\u800clftp\u51ed\u501f\u5f3a\u5927\u7684\u955c\u50cf\u540c\u6b65\u529f\u80fd\u6210\u4e3a\u5907\u4efd\u9996\u9009\u3002\u751f\u4ea7\u73af\u5883\u5e94\u4f18\u5148\u4f7f\u7528SFTP\/SCP\u3002\u901a\u8fc7\u672c\u6587\u7684\u5b9e\u6218\u6848\u4f8b\uff0c\u60a8\u53ef\u4ee5\u5feb\u901f\u642d\u5efa\u81ea\u52a8\u5316\u5907\u4efd\u7cfb\u7edf\uff0c\u5c06\u670d\u52a1\u5668\u6587\u4ef6\u5b89\u5168\u3001\u9ad8\u6548\u5730\u8fc1\u79fb\u5230FTP\u5b58\u50a8\u4e2d\u3002_linux ftp\u5de5\u5177","og_url":"https:\/\/www.wsisp.com\/helps\/10900.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-04-18T10:18:23+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"2 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/10900.html","url":"https:\/\/www.wsisp.com\/helps\/10900.html","name":"Linux \u4e0b FTP \u5de5\u5177\u7684\u5b89\u88c5\u548c\u4f7f\u7528\u65b9\u5f0f\u8be6\u89e3\uff1a\u9644\u670d\u52a1\u5668\u6587\u4ef6\u5907\u4efd\u5b9e\u6218 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-04-18T10:18:23+00:00","dateModified":"2025-04-18T10:18:23+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/10900.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/10900.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/10900.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"Linux \u4e0b FTP \u5de5\u5177\u7684\u5b89\u88c5\u548c\u4f7f\u7528\u65b9\u5f0f\u8be6\u89e3\uff1a\u9644\u670d\u52a1\u5668\u6587\u4ef6\u5907\u4efd\u5b9e\u6218"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/10900","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=10900"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/10900\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=10900"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=10900"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=10900"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=10900"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}