Link to home
Start Free TrialLog in
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,
Avatar of omarfarid
omarfarid
Flag of United Arab Emirates image

on the server itself, try this

sftp 0

what do you get?

by default ssh is enabled which is also used for sftp.
Avatar of ocpshehzad
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,
Do you have an ssh server instance running ?
SOLUTION
Avatar of omarfarid
omarfarid
Flag of United Arab Emirates image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
- i can access server through PuTTY
- from here i can run shell commands
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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..
What does
grep sftp /etc/ssh/sshd_config

Open in new window


display when you run it from the command line?
thankyou every  one for your assistance