Hey, guys, I hope you are fine there in today's article I’ll walk you through the steps to install the FTP server on windows server 2022 so let's go to my lab here's my file server and I want to install sftp service on this server the first step I need to install its feature to install
the feature we need to right-click on the windows
button and go to the settings windows settings and then click on apps click on
manage optional features now click on add a feature now you have to browse down
to select open ssh server click on install and wait for some moments meanwhile
i'll open the services so I can show you once it will be installed the open ssh
server service will be there I'll keep refreshing okay open ssh service is
showing now we have to configure
these two services to start on automatic
mode at startup click apply and then start the services go to your ssh server
service startup type again automatic apply and click on start button now we
have done the step one and step two now we have to configure the root directory
for open ssh server by default it's going in your operating system partition and
then users but I want to make the sftp default path or root path in the drive
like sftp root
so I need to point my sftp server by default
on this path I'll copy this one and open notepad run as an administrator click
open and you have to change the path for c program data and then ssh once you will
be in that directory you need to select all files and here's the file ssd
underscore config you need to open that one and now find the key chroot
directory this one I'll paste my path new path here and put it on codes now I
have to remove this hash so changes can take effect I'll save it on the same
location close it and now go back to your ssh server service and restart it
okay it's done no I'll install any FTP client like Filezilla once the download
is completed I'll install this client
okay on the fifth part now we have to create a
local user or the domain user to connect the FTP server I'll go back to my
screen and now we have to create a new site manager new site tab sftp
server now go to the protocol and select the sftp I'll mention the local IP
address or the hostname of the server port number will remain 22 usernames
will be sftp usr1 and then the password click ok now let's try to connect that
server and it's connected successfully let me show you the path that we have
already set in the server its e volume and then sftp root and once the user
will upload the data it should be showing here let's try that suppose a user
is trying to create a new directory here which is sftp user 1 data click ok go
back to your server check yes the directory is created here now let's try to
upload some file to make
sure the user has appropriate permission
there I'll go back to my c users and then test the user I'll try to find some files
from my downloads and let's say if I can let's check if I can upload this setup
remote desktop manager file so the way is just simply to drag and drop here now
you can see on the bottom the file is uploading successfully go back to your
file server
and confirm if the data is uploaded
there yes the data is uploaded in the server so I'll also share this document
with you uh in the Article's description you will find the URL link of this
blog so it's better to follow the step-by-step guide so you can get the better
idea how the sftp configured
Thanks