{"id":3339,"date":"2025-02-27T19:40:26","date_gmt":"2025-09-26T07:15:05","guid":{"rendered":""},"modified":"2025-02-02T00:46:20","modified_gmt":"2025-02-01T23:46:20","slug":"how-to-install-and-use-sftp-on-windows-vps","status":"publish","type":"post","link":"https:\/\/netcloud24.com\/knowledgebase\/how-to-install-and-use-sftp-on-windows-vps\/","title":{"rendered":"Linux VPS &#038; VPS Windows Setup Guide | NetCloud24 and Use SFTP on Windows VPS"},"content":{"rendered":"<p>\u00a0<\/p>\n<header><\/header>\n<section>\n<h2>Introduction<\/h2>\n<p>SFTP (SSH File Transfer Protocol) is a secure method for transferring files over a network. In this guide, we will show you how to install and configure an SFTP server on a , allowing you to securely upload and download files.<\/p>\n<\/section>\n<section>\n<h2>Step 1: Install OpenSSH Server on Windows VPS<\/h2>\n<p>Windows VPS10 and newer versions include the OpenSSH Server feature, which you can enable to set up SFTP. Follow these steps:<\/p>\n<ol>\n<li>Open <strong>Settings<\/strong> on your Windows VPS.<\/li>\n<li>Go to <strong>Apps<\/strong> &gt; <strong>Optional Features<\/strong>.<\/li>\n<li>Scroll down and click on <strong>Add a feature<\/strong>.<\/li>\n<li>Search for <strong>OpenSSH Server<\/strong>, select it, and click <strong>Install<\/strong>.<\/li>\n<\/ol>\n<\/section>\n<section>\n<h2>Step 2: Start and Configure OpenSSH Server<\/h2>\n<ol>\n<ol>\n<li>After installation, open <strong>PowerShell<\/strong> with administrative privileges.<\/li>\n<li>Start the SSH server by running the following command:<\/li>\n<\/ol>\n<\/ol>\n<pre><code>Start-Service sshd<\/code><\/pre>\n<ol>\n<ol>\n<li>To ensure the SSH server starts automatically with Windows, run:<\/li>\n<\/ol>\n<\/ol>\n<pre><code>Set-Service -Name sshd -StartupType 'Automatic'<\/code><\/pre>\n<ol>\n<ol>\n<li>Next, confirm that the firewall allows SSH traffic:<\/li>\n<\/ol>\n<\/ol>\n<pre><code>New-NetFirewallRule -Name sshd -DisplayName 'OpenSSH Server (sshd)' -Enabled True -Protocol TCP -Action Allow -LocalPort 22<\/code><\/pre>\n<\/section>\n<section>\n<h2>Step 3: Configure SFTP (Optional)<\/h2>\n<p>If you want to restrict SFTP users to specific directories or configure other advanced options, you can modify the SSH configuration file:<\/p>\n<ol>\n<ol>\n<li>Navigate to the OpenSSH configuration file, typically located in <code>C:\\ProgramData\\ssh\\sshd_config<\/code>.<\/li>\n<li>Edit the file to configure your preferences. For example, you can restrict users to their home directories by adding:<\/li>\n<\/ol>\n<\/ol>\n<pre><code>Subsystem sftp sftp-server.exe\r\nMatch Group sftp\r\n    ChrootDirectory C:\\Users\\%u\r\n    ForceCommand internal-sftp\r\n    AllowTcpForwarding no<\/code><\/pre>\n<ol>\n<ol>\n<li>Save the file and restart the SSH service:<\/li>\n<\/ol>\n<\/ol>\n<pre><code>Restart-Service sshd<\/code><\/pre>\n<\/section>\n<section>\n<h2>Step 4: Connect to the SFTP Server<\/h2>\n<p>Once OpenSSH is configured, you can connect to the SFTP server using any SFTP client. Here&#8217;s how:<\/p>\n<ol>\n<li>Open your preferred SFTP client (e.g., <a href=\"https:\/\/filezilla-project.org\/\" target=\"_blank\" rel=\"follow\">FileZilla<\/a>, <a href=\"https:\/\/winscp.net\/eng\/index.php\" target=\"_blank\" rel=\"follow\">WinSCP<\/a>, or <a href=\"https:\/\/www.cyberduck.io\/\" target=\"_blank\" rel=\"follow\">Cyberduck<\/a>).<\/li>\n<li>Enter the following connection details:\n<ul>\n<li><strong>Host:<\/strong> Your VPS&#8217;s IP address or domain name.<\/li>\n<li><strong>Port:<\/strong> 22 (the default SSH port).<\/li>\n<li><strong>Username:<\/strong> Your Windows VPS username (e.g., <code>Administrator<\/code>).<\/li>\n<li><strong>Password:<\/strong> Your Windows VPS password.<\/li>\n<\/ul>\n<\/li>\n<li>Click <strong>Connect<\/strong> to establish the SFTP connection.<\/li>\n<\/ol>\n<\/section>\n<section>\n<h2>Step 5: Upload and Download Files Using SFTP<\/h2>\n<p>Once connected, you can securely upload and download files between your local computer and the .<\/p>\n<ol>\n<li>To upload files, drag them from your local machine&#8217;s file manager to the SFTP client window.<\/li>\n<li>To download files, drag them from the SFTP client window to your local file manager.<\/li>\n<\/ol>\n<\/section>\n<section>\n<h2>Step 6: Troubleshooting<\/h2>\n<p>If you encounter any issues with SFTP, consider the following troubleshooting tips:<\/p>\n<ul>\n<li>Ensure the SSH service is running by executing <code>Get-Service sshd<\/code> in PowerShell.<\/li>\n<li>Verify that the firewall allows traffic on port 22.<\/li>\n<li>Check the <code>sshd_config<\/code> file for any misconfigurations.<\/li>\n<\/ul>\n<\/section>\n<section>\n<h2>Conclusion<\/h2>\n<p>You have successfully installed and configured SFTP on your . You can now securely transfer files to and from your server using SFTP. For more advanced features, consult the official OpenSSH documentation or your SFTP client\u2019s user guide.<\/p>\n<\/section>\n<footer>\n<p>\u00a9 2024. For more Windows VPS solutions, visit <a href=\"https:\/\/ie.netcloud24.com\" target=\"_blank\" rel=\"follow\">NetCloud24<\/a>.<\/p>\n<\/footer>\n<div class=\"post-author-box\" style=\"border-top:1px solid #ddd;margin-top:20px;padding-top:15px;\">\n<p><strong>Author:<\/strong> \u0141ukasz Bodziony<\/p>\n<p><strong>Website:<\/strong> <a href=\"https:\/\/ca.netcloud24.com\" target=\"_blank\" rel=\"dofollow\">Windows VPS<\/a><\/p>\n<p><em>\u0141ukasz Bodziony is the CEO and founder of <a href=\"https:\/\/netcloud24.com\" target=\"_blank\" rel=\"dofollow\">NETCLOUD24<\/a>, a global VPS hosting brand proudly originating from Poland. With extensive experience in cloud computing, virtualization, and server management, he delivers high-performance <strong>Windows VPS<\/strong> and <strong>Remote Desktop Services (RDS)<\/strong> solutions to clients across Europe, North America, and beyond.<\/em><\/p>\n<p><em>His expertise covers a wide range of technologies, including <strong>Microsoft Azure<\/strong>, <strong>Proxmox VE<\/strong>, <strong>Amazon Web Services (AWS)<\/strong>, and numerous other virtualization and cloud platforms.<\/em><\/p>\n<p><em>Beyond running his hosting business, \u0141ukasz also provides <strong>professional paid server configuration and optimization services<\/strong> for companies and individuals. Outside of work, he is dedicated to caring for his children and building a secure future for them.<\/em><\/p>\n<p><em>If you are interested in working with him or need expert assistance with your hosting, cloud environment, or server setup, feel free to reach out via <a href=\"https:\/\/ca.netcloud24.com\" target=\"_blank\" rel=\"dofollow\">Windows VPS<\/a>.<\/em><\/p>\n<\/p><\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u00a0 Introduction SFTP (SSH File Transfer Protocol) is a secure method for transferring files over a network. In this guide, we will show you how to install and\u2026<\/p>\n","protected":false},"author":1,"featured_media":3421,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_seopress_robots_primary_cat":"","_seopress_titles_title":"","_seopress_titles_desc":"","_seopress_robots_index":"","footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[],"tags":[14,12,11,23,20,21,22,17,7,8,6,10,18,19,15,24,16,5,13,9],"class_list":["post-3339","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","tag-cheapvps","tag-cloudvps","tag-hostingvps","tag-rds","tag-rdscal","tag-remotedesktop","tag-remotedesktopvps","tag-servervps","tag-ukvps","tag-virtualserver","tag-vpshosting","tag-vpsserver","tag-vpssolutions","tag-vpswindows","tag-vpswithwindows","tag-windowsrds","tag-windowsserver","tag-windowsvps","tag-windowsvpshosting","tag-windowsvpsuk"],"jetpack_publicize_connections":[],"_links":{"self":[{"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/posts\/3339","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/comments?post=3339"}],"version-history":[{"count":0,"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/posts\/3339\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/media\/3421"}],"wp:attachment":[{"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/media?parent=3339"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/categories?post=3339"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/tags?post=3339"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}