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
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,
Avatar of maeltar
maeltar
Flag of United Kingdom of Great Britain and Northern Ireland image

Do you have an ssh server instance running ?
SOLUTION
Avatar of omarfarid
omarfarid
Flag of United Arab Emirates image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of ocpshehzad
ocpshehzad

ASKER

- i can access server through PuTTY
- from here i can run shell commands
ASKER CERTIFIED SOLUTION
Avatar of maeltar
maeltar
Flag of United Kingdom of Great Britain and Northern Ireland image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
Avatar of maeltar
maeltar
Flag of United Kingdom of Great Britain and Northern Ireland image

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..
Avatar of Tintin
Tintin

What does
grep sftp /etc/ssh/sshd_config

Open in new window


display when you run it from the command line?
Avatar of ocpshehzad
ocpshehzad

ASKER

thankyou every  one for your assistance
Linux
Linux

Linux is a UNIX-like open source operating system with hundreds of distinct distributions, including: Fedora, openSUSE, Ubuntu, Debian, Slackware, Gentoo, CentOS, and Arch Linux. Linux is generally associated with web and database servers, but has become popular in many niche industries and applications.

71K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo