国产 无码 综合区,色欲AV无码国产永久播放,无码天堂亚洲国产AV,国产日韩欧美女同一区二区

Java實(shí)現(xiàn)讀取SFTP服務(wù)器指定目錄文件

這篇具有很好參考價(jià)值的文章主要介紹了Java實(shí)現(xiàn)讀取SFTP服務(wù)器指定目錄文件。希望對(duì)大家有所幫助。如果存在錯(cuò)誤或未考慮完全的地方,請(qǐng)大家不吝賜教,您也可以點(diǎn)擊"舉報(bào)違法"按鈕提交疑問(wèn)。

SFTP服務(wù)器的簡(jiǎn)介

SFTP(SSH File Transfer Protocol)是一種在安全通道上傳輸文件的協(xié)議,它是基于SSH(Secure Shell)協(xié)議的擴(kuò)展,用于在客戶端和服務(wù)器之間進(jìn)行加密的文件傳輸。

SFTP 服務(wù)器的主要作用是提供一個(gè)安全的方式來(lái)上傳、下載和管理文件。以下是一些 SFTP 服務(wù)器的主要作用:

  • 安全的文件傳輸: SFTP 使用加密通道傳輸數(shù)據(jù),確保數(shù)據(jù)在傳輸過(guò)程中不會(huì)被竊聽或篡改。這使得 SFTP
    成為一種安全的文件傳輸方式,適用于敏感數(shù)據(jù)或機(jī)密文件的傳輸。

  • 遠(yuǎn)程文件管理: SFTP
    服務(wù)器允許用戶通過(guò)遠(yuǎn)程連接訪問(wèn)和管理服務(wù)器上的文件和目錄。用戶可以上傳、下載、重命名、刪除等操作,就像在本地操作文件一樣。

  • 備份和歸檔: 組織可以使用 SFTP 服務(wù)器來(lái)進(jìn)行文件的備份和歸檔。通過(guò)定期將文件上傳到 SFTP
    服務(wù)器上,可以確保文件的安全存儲(chǔ)和恢復(fù)。

  • 遠(yuǎn)程工作: SFTP 服務(wù)器使得遠(yuǎn)程工作變得更加方便。用戶可以在任何地方通過(guò) SFTP
    客戶端訪問(wèn)和處理服務(wù)器上的文件,無(wú)需物理接觸服務(wù)器。

  • 數(shù)據(jù)共享: SFTP 服務(wù)器可以用于在團(tuán)隊(duì)成員之間共享文件。成員可以通過(guò) SFTP 進(jìn)行文件的共享和協(xié)作,而無(wú)需將文件發(fā)送給其他人。

  • 自動(dòng)化流程: SFTP 服務(wù)器可以與自動(dòng)化腳本或工作流程集成,實(shí)現(xiàn)自動(dòng)上傳、下載和處理文件,從而提高工作效率。

  • 批量處理: SFTP 服務(wù)器支持批量上傳和下載文件,適用于需要同時(shí)處理多個(gè)文件的場(chǎng)景,如數(shù)據(jù)導(dǎo)入、導(dǎo)出等。

總之,SFTP 服務(wù)器提供了一個(gè)安全、高效的方式來(lái)進(jìn)行文件傳輸和管理,適用于許多不同的應(yīng)用場(chǎng)景,特別是在需要保護(hù)數(shù)據(jù)安全性的情況下。文章來(lái)源地址http://www.zghlxwxcb.cn/news/detail-767837.html

pom依賴

        <dependency>
            <groupId>com.jcraft</groupId>
            <artifactId>jsch</artifactId>
            <version>${jsch.version}</version>
        </dependency>

     <jsch.version>0.1.55</jsch.version>

實(shí)現(xiàn)代碼

import cn.hutool.core.text.CharSequenceUtil;
import com.jcraft.jsch.*;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.util.FileCopyUtils;

import java.io.*;
import java.util.ArrayList;
import java.util.List;
import java.util.Optional;
import java.util.Properties;

/**
 * @author Jalen
 */
public class SftpHelper {

    private static final Logger log = LoggerFactory.getLogger(SftpHelper.class);

    private ChannelSftp sftp;

    private Session session;
    /**
     * SFTP login name
     */
    private String username;
    /**
     * SFTP login password
     */
    private String password;
    /**
     * Private key
     */
    private String privateKey;
    /**
     * SFTP server ip address
     */
    private String host;
    /**
     * SFTP server port
     */
    private Integer port;

    private String directory;

    private List<String> listedFiles;

    private List<String> fileNames;

    /**
     * Construct sftp object based on password authentication
     */
    public SftpHelper(String username, String password, String host, Integer port) {
        this.username = username;
        this.password = password;
        this.host = host;
        this.port = port;
    }

    /**
     * Construct sftp object based on key authentication
     */
    public SftpHelper(String username, String host, Integer port, String privateKey) {
        this.username = username;
        this.host = host;
        this.port = port;
        this.privateKey = privateKey;
    }

    public SftpHelper() {
    }

    public List<String> getFileNames() {
        return this.fileNames;
    }

    public SftpHelper connectSftp(String filePath, String fileName) {
        SftpHelper sftp = new SftpHelper(username, password, host, port);
        sftp.login().find(filePath, fileName);
        if (!sftp.isExistsFile()) {
            log.info(" importDealerData, file no found ");
            return null;
        }
        return sftp;
    }

    /**
     * login sftp server
     */
    public SftpHelper login() {
        try {
            JSch jsch = new JSch();
            if (privateKey != null) {
                // Set private key
                jsch.addIdentity(privateKey);
            }

            session = jsch.getSession(username, host, Optional.ofNullable(port).orElse(0));

            if (password != null) {
                session.setPassword(password);
            }
            Properties config = new Properties();
            config.put("StrictHostKeyChecking", "no");

            session.setConfig(config);
            session.connect();

            Channel channel = session.openChannel("sftp");
            channel.connect();

            sftp = (ChannelSftp) channel;
        } catch (JSchException e) {
            log.warn("sftp login failed, reason:{}", e.getMessage());
        }
        return this;
    }

    /**
     * log out
     */
    public void logout() {
        if (sftp != null) {
            if (sftp.isConnected()) {
                sftp.disconnect();
            }
        }
        if (session != null) {
            if (session.isConnected()) {
                session.disconnect();
            }
        }
    }

    /**
     * Upload the input stream data to sftp as a file. File full path = basePath + directory
     * 
     * @author Jalen
     * @date 2022/8/29 15:46
     * @param basePath
     *            basePath
     * @param directory
     *            directory
     * @param sftpFileName
     *            sftpFileName
     * @param file
     *            file
     */
    public void upload(String basePath, String directory, String sftpFileName, File file) {
        if (file == null || CharSequenceUtil.isEmpty(sftpFileName) || (CharSequenceUtil.isEmpty(basePath) && CharSequenceUtil.isEmpty(directory))) {
            log.error("upload basePath:{} directory:{} sftpFileName:{} failed, reason:{}", basePath, directory, sftpFileName, "Parameters are empty");
            return;
        }

        try {
            if (CharSequenceUtil.isNotEmpty(basePath)) {
                sftp.cd(basePath);
            }
            if (CharSequenceUtil.isNotEmpty(directory)) {
                sftp.cd(directory);
            }
        } catch (SftpException e) {
            // If the directory does not exist, create a folder
            String[] dirs = directory.split("/");
            String tempPath = basePath;
            for (String dir : dirs) {
                if (null == dir || "".equals(dir)) {
                    continue;
                }
                tempPath += "/" + dir;
                try {
                    sftp.cd(tempPath);
                } catch (SftpException ex) {
                    try {
                        sftp.mkdir(tempPath);
                        sftp.cd(tempPath);
                    } catch (SftpException sftpException) {
                        log.error("upload basePath:{} directory:{} sftpFileName:{} failed, reason:{}", basePath, directory, sftpFileName, e.getMessage());
                    }

                }
            }
        }

        InputStream input = null;
        try {
            input = new FileInputStream(file);
            sftp.put(input, sftpFileName);
        } catch (FileNotFoundException | SftpException e) {
            log.error("upload basePath:{} directory:{} sftpFileName:{} failed, reason:{}", basePath, directory, sftpFileName, e.getMessage());
        } finally {
            if (input != null) {
                try {
                    input.close();
                } catch (IOException e) {
                    log.error("upload basePath:{} directory:{} sftpFileName:{} failed, Reason:{}", basePath, directory, sftpFileName, e.getMessage());
                }
            }
        }
    }

    /**
     * download file.
     * 
     * @author Jalen
     * @date 2022/8/29 15:46
     * @param directory
     *            directory
     * @param downloadFile
     *            downloadFile
     * @param saveFile
     *            saveFile
     * @return boolean
     */
    public boolean download(String directory, String downloadFile, String saveFile) throws SftpException, IOException {
        FileOutputStream outPutFile = null;
        try {
            if (CharSequenceUtil.isNotEmpty(directory)) {
                sftp.cd(directory);
            }
            // The folder cannot be operated, otherwise an error will be
            // reported.
            String filepath = saveFile + downloadFile;
            File file = new File(filepath);
            outPutFile = new FileOutputStream(file.getPath());
            sftp.get(downloadFile, outPutFile);
        } catch (Exception e) {
            log.warn("download directory:{} downloadFile:{} failed, reason:{}", directory, downloadFile, e.getMessage());
            return false;
        } finally {
            if (outPutFile != null) {
                outPutFile.close();
            }
        }
        return true;
    }

    /**
     * download file
     * 
     * @author Jalen
     * @date 2022/8/29 15:47
     * @param directory
     *            directory
     * @param downloadFile
     *            downloadFile
     * @return byte[]
     */
    public byte[] download(String directory, String downloadFile) throws SftpException, IOException {
        if (CharSequenceUtil.isNotEmpty(directory)) {
            sftp.cd(directory);
        }
        InputStream is = sftp.get(downloadFile);
        return FileCopyUtils.copyToByteArray(is);
    }

    public InputStream downloadInputStream(String directory, String downloadFile) throws SftpException {
        if (CharSequenceUtil.isNotEmpty(directory)) {
            sftp.cd(directory);
        }
        return sftp.get(downloadFile);
    }

    /**
     * Delete sftp file
     * 
     * @author Jalen
     * @date 2022/8/29 15:47
     * @param directory
     *            directory
     * @param deleteFile
     *            deleteFile
     * @return boolean
     */
    public boolean delete(String directory, String deleteFile) {
        boolean flag;
        try {
            // The full path can be the directory contained in the current
            // directory
            sftp.cd(directory);
            // Delete the full suffixed file name of the file
            sftp.rm(deleteFile);
            flag = true;
        } catch (Exception e) {
            log.info("delete directory:{} deleteFile:{} failed, reason:{}", directory, deleteFile, e.getMessage());
            flag = false;
        }
        return flag;
    }

    public Boolean isValidFile(String fileName) {
        boolean isValid = false;
        if (CharSequenceUtil.isNotEmpty(fileName)) {
            String fileType = fileName.substring(fileName.lastIndexOf(".") + 1);
            boolean exist = CharSequenceUtil.isNotEmpty(fileType) && (fileType.equalsIgnoreCase(Cons.File.CSV)
                    || fileType.equalsIgnoreCase(Cons.File.XLS)
                    || fileType.equalsIgnoreCase(Cons.File.TXT)
                    || fileType.equalsIgnoreCase(Cons.File.XLSX));
            if (exist) {
                isValid = true;
            }
        }
        return isValid;
    }

    public SftpHelper find(String directory, String fileName) {
        this.directory = directory;
        this.listedFiles = listFiles(directory, fileName);
        return this;
    }

    public boolean isExistsFile() {
        return this.listedFiles != null && this.listedFiles.size() > 0;
    }

    private boolean matchFile(String target, String pattern) {
        return target.equals(pattern) || target.matches(pattern);
    }

    public List<String> listFiles(String directory, String fileName) {
        List<String> findFileList = new ArrayList<>();
        ChannelSftp.LsEntrySelector selector = lsEntry -> {
            String lsFileName = lsEntry.getFilename();
            if (CharSequenceUtil.isNotEmpty(fileName)) {
                if (matchFile(lsFileName, fileName)) {
                    findFileList.add(lsFileName);
                }
            } else {
                Boolean isValid = isValidFile(lsFileName);
                if (isValid) {
                    findFileList.add(lsFileName);
                }
            }
            return 0;
        };

        try {
            if (CharSequenceUtil.isNotEmpty(directory)) {
                sftp.ls(directory, selector);
            }
        } catch (SftpException e) {
            log.info("listFiles failed, reason:{}", e.getMessage());
        }

        return findFileList;
    }

    public String getDirectory() {
        return directory;
    }

    public void setDirectory(String directory) {
        this.directory = directory;
    }

    public List<String> getListedFiles() {
        return listedFiles;
    }

    public void setListedFiles(List<String> listedFiles) {
        this.listedFiles = listedFiles;
    }

使用案例

@RequiredArgsConstructor
@Slf4j
@Service
public class SiebelSynFileFacade {

    @Value("${spring.jpa.properties.hibernate.jdbc.batch_size:10}")
    private Integer batchSize;
    @Value("${sftp.test.host}")
    private String host;
    @Value("${sftp.test.port}")
    private Integer port;
    @Value("${sftp.test.username}")
    private String username;
    @Value("${sftp.test.password}")
    private String password;
    @Value("${sftp.test.siebelSynFile.filePath}")
    private String siebelSynFilePath;

    final AccountService accountService;
    final AccountSettingsService accountSettingsService;
    final ServiceReminderService serviceReminderService;
    final BatchService batchService;
    final AccountAreaInterestsService accountAreaInterestsService;
    final BoatService boatService;
    final EngineService engineService;


    public void synData() throws Exception {
        // Only us will synchronize data with siebel
        SftpHelper sftp = this.connectSftp(siebelSynFilePath, null);
        if (ObjectUtil.isNull(sftp)) {
            log.warn(" Files is empty. ");
            return;
        }
        List<String> listedFiles = sftp.getListedFiles();
        // CN 真實(shí)場(chǎng)景, 讀取ftp目錄
        List<BoatSynData> boatEntityList = new ArrayList<>();
        List<EngineSynData> engineEntityList = new ArrayList<>();
        List<AccountEntity> accountEntityList = new ArrayList<>();
        List<AccountSettingsEntity> accountSettingsEntityList = new ArrayList<>();
        List<AccountAreaInterestsEntity> accountAreaInterestsEntityList = new ArrayList<>();
        List<ServiceReminderEntity> serviceReminderEntityList = new ArrayList<>();
        List<ClaimEntity> claimEntityList = new ArrayList<>();
        List<CampaignEntity> campaignEntityList = new ArrayList<>();
        // CN 只讀取當(dāng)天文件
        for (String listedFile : listedFiles) {
            String name = listedFile;
            InputStream fileInputStream = sftp.downloadInputStream(siebelSynFilePath, listedFile);
            if (CharSequenceUtil.isBlank(name)) {
                throw new IllegalArgumentException(" Filename is not empty.");
            }
            name = name.substring(0, name.indexOf(Cons.Delimiter.UNDERSCORE));
            switch (name) {
                case SiebelCons.BOAT ->
                        boatEntityList = SynFileProxy.parseFile(name, fileInputStream, BoatSynData.class);
                case SiebelCons.ENGINE ->
                        engineEntityList = SynFileProxy.parseFile(name, fileInputStream, EngineSynData.class);
                case SiebelCons.ACCOUNT ->
                        accountEntityList = SynFileProxy.parseFile(name, fileInputStream, AccountEntity.class);
                case SiebelCons.ACCOUNT_SETTINGS ->
                        accountSettingsEntityList = SynFileProxy.parseFile(name, fileInputStream, AccountSettingsEntity.class);
                case SiebelCons.SERVICE_REMINDER ->
                        serviceReminderEntityList = SynFileProxy.parseFile(name, fileInputStream, ServiceReminderEntity.class);
                case SiebelCons.CLAIM ->
                        claimEntityList = SynFileProxy.parseFile(name, fileInputStream, ClaimEntity.class);
                case SiebelCons.AREA_INT ->
                        accountAreaInterestsEntityList = SynFileProxy.parseFile(name, fileInputStream, AccountAreaInterestsEntity.class);
                case SiebelCons.CAMPAIGN ->
                        campaignEntityList = SynFileProxy.parseFile(name, fileInputStream, CampaignEntity.class);
                default -> {
                }
            }
        }
        // CN 合并數(shù)據(jù)入庫(kù)
        this.handleAccount(accountEntityList);
        this.handleAccountSettings(accountSettingsEntityList);
        this.handleReminder(serviceReminderEntityList);
        this.handleClaim(claimEntityList);
        this.handleBoat(boatEntityList);
        this.handleEngine(engineEntityList);
        this.handleAccountAreaInterests(accountAreaInterestsEntityList);
        this.handleCampaign(campaignEntityList);
        // CN 操作完成刪除文件
        for (String listedFile : listedFiles) {
            sftp.delete(siebelSynFilePath, listedFile);
        }
    }


    /*------------------------------ private ------------------------------*/

    private SftpHelper connectSftp(String filePath, String fileName) {
        SftpHelper sftp = new SftpHelper(username, password, host, port);
        sftp.login().find(filePath, fileName);
        if (!sftp.isExistsFile()) {
            log.info(" importDealerData, file no found ");
            return null;
        }
        return sftp;
    }

到了這里,關(guān)于Java實(shí)現(xiàn)讀取SFTP服務(wù)器指定目錄文件的文章就介紹完了。如果您還想了解更多內(nèi)容,請(qǐng)?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!

本文來(lái)自互聯(lián)網(wǎng)用戶投稿,該文觀點(diǎn)僅代表作者本人,不代表本站立場(chǎng)。本站僅提供信息存儲(chǔ)空間服務(wù),不擁有所有權(quán),不承擔(dān)相關(guān)法律責(zé)任。如若轉(zhuǎn)載,請(qǐng)注明出處: 如若內(nèi)容造成侵權(quán)/違法違規(guī)/事實(shí)不符,請(qǐng)點(diǎn)擊違法舉報(bào)進(jìn)行投訴反饋,一經(jīng)查實(shí),立即刪除!

領(lǐng)支付寶紅包贊助服務(wù)器費(fèi)用

相關(guān)文章

  • shell腳本實(shí)現(xiàn)刪除服務(wù)器指定目錄下文件方法

    上述腳本中,find 命令用于查找指定目錄下4天以前的文件,并將其刪除。其中,-type f 表示只查找普通文件,不包括目錄和符號(hào)鏈接等其他類型的文件;-mtime +3 表示查找修改時(shí)間早于3天前的文件;-delete 表示刪除查找到的文件。 腳本中的 $folder_path 可以替換為實(shí)際的目錄路徑

    2023年04月19日
    瀏覽(23)
  • Java使用sftp文件服務(wù)器

    在工作中,對(duì)接第三方服務(wù)時(shí),往往存在文件的傳輸使用,使用stfp是一種簡(jiǎn)單有效的方式,可以對(duì)文件進(jìn)行上傳和下載。下面是使用sftp文件服務(wù)器的demo,可以作為工具類放入項(xiàng)目中,即可簡(jiǎn)單上手和使用。

    2024年02月11日
    瀏覽(25)
  • Java從sftp服務(wù)器上傳與下載文件

    業(yè)務(wù)需要從sftp服務(wù)器上上傳、下載、刪除文件等功能,通過(guò)查閱資料及手動(dòng)敲打代碼,實(shí)現(xiàn)了操作sftp的基本功能,有需求的小伙伴可以看看具體的實(shí)現(xiàn)過(guò)程。 摘自百度百科:SSH文件傳輸協(xié)議,是一種數(shù)據(jù)流鏈接,提供文件訪問(wèn)、傳輸和管理功能的網(wǎng)絡(luò)傳輸協(xié)議。 SFTP允許用

    2024年02月11日
    瀏覽(33)
  • 通過(guò)nginx訪問(wèn)服務(wù)器指定目錄下圖片資源

    通過(guò)nginx訪問(wèn)服務(wù)器指定目錄下圖片資源

    實(shí)現(xiàn)步驟: 1、創(chuàng)建文件夾并且上傳圖片 2、查看nginx進(jìn)程 ps -ef | grep nginx? ? 3、修改nginx配置文件 根據(jù)步驟2查看nginx安裝目錄;(通常nginx安裝目錄為?cd /usr/local/nginx/) 如果自定義的安裝目錄則根據(jù)實(shí)際情況而定 進(jìn)入到nginx安裝目錄下:? 1、cd /usr/local/nginx/ 2、cd conf 3、vim

    2024年02月15日
    瀏覽(24)
  • JAVA使用SFTP和FTP兩種方式連接服務(wù)器

    FTP是一種文件傳輸協(xié)議,一般是為了方便數(shù)據(jù)共享的。包括一個(gè)FTP服務(wù)器和多個(gè)FTP客戶端。FTP客戶端通過(guò)FTP協(xié)議在服務(wù)器上下載資源。FTP客戶端通過(guò)FTP協(xié)議在服務(wù)器上下載資源。而一般要使用FTP需要在服務(wù)器上安裝FTP服務(wù)。 而SFTP協(xié)議是在FTP的基礎(chǔ)上對(duì)數(shù)據(jù)進(jìn)行加密,使得傳

    2024年02月14日
    瀏覽(24)
  • 本地電腦搭建SFTP服務(wù)器,并實(shí)現(xiàn)公網(wǎng)訪問(wèn)

    本地電腦搭建SFTP服務(wù)器,并實(shí)現(xiàn)公網(wǎng)訪問(wèn)

    1.1 下載 freesshd 服務(wù)器軟件 下載地址:freeSSHd and freeFTPd 選擇freeFTPD.exe下載 下載后,點(diǎn)擊安裝 安裝之后,它會(huì)提示是否啟動(dòng)后臺(tái)服務(wù),Yes 安裝后,點(diǎn)擊開始菜單– freeFTPd, 注意 :這里要點(diǎn)擊鼠標(biāo)右鍵, 以管理員權(quán)限 打開freeFTPd,如果以普通用戶打開freeFTPd, 將無(wú)法保存配置

    2024年02月08日
    瀏覽(28)
  • shell 腳本統(tǒng)計(jì) http 文件服務(wù)器下指定目錄及其子目錄下所有文件的大小

    shell腳本如下: 首先 vi calculate_size.sh 寫入下入內(nèi)容 執(zhí)行 sh calculate_size.sh http://example.com/some/dir/ 即可統(tǒng)計(jì) http 文件服務(wù)器http://example.com/some/dir/ 中 dir 目錄及其子目錄下所有文件的大小。

    2024年02月15日
    瀏覽(30)
  • 寶塔 ftp 服務(wù)器發(fā)回了不可路由的地址/讀取目錄列表失敗

    寶塔 ftp 服務(wù)器發(fā)回了不可路由的地址/讀取目錄列表失敗

    ftp連接不上: 1.注意內(nèi)網(wǎng)IP和外網(wǎng)IP 2.檢查ftp服務(wù)是否啟動(dòng) (面板首頁(yè)即可看到) 3.檢查防火墻 20 端口 ftp 21 端口及被動(dòng)端口 39000 - 40000 是否放行 (如是騰訊云/阿里云等還需檢查安全組) 4.是否主動(dòng)/被動(dòng)模式都不能連接 5.新建一個(gè)用戶看是否能連接 6.修改ftp配置文件 將For

    2024年01月23日
    瀏覽(17)
  • 怎樣通過(guò)本地電腦搭建SFTP服務(wù)器,并實(shí)現(xiàn)公網(wǎng)訪問(wèn)?

    怎樣通過(guò)本地電腦搭建SFTP服務(wù)器,并實(shí)現(xiàn)公網(wǎng)訪問(wèn)?

    1.1 下載 freesshd 服務(wù)器軟件 下載地址:freeSSHd and freeFTPd 選擇freeFTPD.exe下載 下載后,點(diǎn)擊安裝 安裝之后,它會(huì)提示是否啟動(dòng)后臺(tái)服務(wù),Yes 安裝后,點(diǎn)擊開始菜單– freeFTPd, 注意 :這里要點(diǎn)擊鼠標(biāo)右鍵, 以管理員權(quán)限 打開freeFTPd,如果以普通用戶打開freeFTPd, 將無(wú)法保存配置

    2024年02月12日
    瀏覽(34)
  • Windows本地快速搭建SFTP文件服務(wù)器,并端口映射實(shí)現(xiàn)公網(wǎng)遠(yuǎn)程訪問(wèn)

    Windows本地快速搭建SFTP文件服務(wù)器,并端口映射實(shí)現(xiàn)公網(wǎng)遠(yuǎn)程訪問(wèn)

    轉(zhuǎn)載自cpolar極點(diǎn)云的文章:如何在內(nèi)網(wǎng)搭建SFTP服務(wù)器,并發(fā)布到公網(wǎng)可訪問(wèn) 下載地址:http://www.freesshd.com/?ctt=download 選擇freeFTPD.exe下載 下載后,點(diǎn)擊安裝 安裝之后,它會(huì)提示是否啟動(dòng)后臺(tái)服務(wù),Yes 安裝后,點(diǎn)擊開始菜單– freeFTPd, 注意 :這里要點(diǎn)擊鼠標(biāo)右鍵, 以管理員權(quán)

    2024年02月05日
    瀏覽(35)

覺得文章有用就打賞一下文章作者

支付寶掃一掃打賞

博客贊助

微信掃一掃打賞

請(qǐng)作者喝杯咖啡吧~博客贊助

支付寶掃一掃領(lǐng)取紅包,優(yōu)惠每天領(lǐng)

二維碼1

領(lǐng)取紅包

二維碼2

領(lǐng)紅包