Avatar of ocpshehzad
ocpshehzad
 asked on

Enable SFTP on Linux Server

Dear Experts,

1. i am running a Centos6 with Plesk Panel 10. For PCI Compliance I have blocked FTP port21.

2. now when i try to connect through SFTP (port22) using winscp. it gives me this error:
"cannot initialize SFTP protocol. Is host running a SFTP server"

3. what setting/installation i need to do server to make SFTP work?

Regards,
LinuxOS Security

Avatar of undefined
Last Comment
ocpshehzad

8/22/2022 - Mon
omarfarid

on the server itself, try this

sftp 0

what do you get?

by default ssh is enabled which is also used for sftp.
ocpshehzad

ASKER
@omarfarid
- i could not understand what i have to do?
- i have already seen these lines while google search but could not get it.

Thanks,
maeltar

Do you have an ssh server instance running ?
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes
SOLUTION
omarfarid

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
ocpshehzad

ASKER
- i can access server through PuTTY
- from here i can run shell commands
ASKER CERTIFIED SOLUTION
Log in to continue reading
Log In
Sign up - Free for 7 days
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
maeltar

Just thinking here, you use putty to connect to the server, do you use port 22 in there or is it something else ?

As it could be that ssh is listening on a none standard port ...

Also, using putty does not mean that you are connecting using ssh, putty is a client that can be configured in may way, but is primarily known as an ssh client..
Tintin

What does
grep sftp /etc/ssh/sshd_config

Open in new window


display when you run it from the command line?
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
ocpshehzad

ASKER
thankyou every  one for your assistance