LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-23-2019, 05:24 AM   #1
catiewong
Member
 
Registered: Aug 2018
Posts: 190

Rep: Reputation: Disabled
sftp


In my centos 7.x , there are many user have added in /etc/ssh/sshd_config , so that they can access the folder via sftp , it works fine .

However , I found one of user do not added in /etc/ssh/sshd_config but still can use sftp to access the folder , I wonder what service this ID is using , I use ps to check but do not find any ftp service is running ( eg . vsftpd ) .

would advise is there any build-in ftp server comes with centos ? is there any possible ftp service is using ?

thanks
 
Old 01-23-2019, 05:31 AM   #2
Turbocapitalist
Senior Member
 
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 4,834
Blog Entries: 3

Rep: Reputation: 2399Reputation: 2399Reputation: 2399Reputation: 2399Reputation: 2399Reputation: 2399Reputation: 2399Reputation: 2399Reputation: 2399Reputation: 2399Reputation: 2399
sshd_config is probably misconfigured. Also, you should apply access controls at a group level so that you don't have to keep adding or removing people's accounts to so many configuration files. Point the configurations at a group and then work with the group.

Code:
Match User foo,bar
Match Group sftpusers
        ForceCommand internal-sftp
 
1 members found this post helpful.
Old 01-23-2019, 06:14 AM   #3
ehartman
Senior Member
 
Registered: Jul 2007
Location: Delft, The Netherlands
Distribution: Slackware
Posts: 1,674

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
Quote:
Originally Posted by catiewong View Post
would advise is there any build-in ftp server comes with centos ?
As you could have gathered from the config file, sftp is served by the sshd daemon as a sub-system, either internal or through the sftp-server application (that is included with openssh).
CentOS has a vsftp package available too that may be installed on your system, but that uses a completely different port and serves "normal" ftp, possibly with SSL for ftps encrypted connections.
Neither the sftp-server nor vsftp runs permanently, they are started "on demand".
In the case of vsftp this is (haven't got a CentOS system at hand to check) probably done by xinetd (the InterNET Daemon), whose config file is /etc/xinetd.conf.
There you can enable/disable starting the vsftp daemon.

And, of course, your firewall must allow incoming ftp access (not applicable to sftp as it uses the ssh port).
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
SFTP throwing "End of file" when doing SFTP transfer in perl exceed1 Programming 5 03-06-2010 01:34 PM
how to create sftp user only in red hat 4 not ftp user ..only sftp user princeu28 Linux - Newbie 1 10-14-2008 08:10 AM
cannot login into SFTP server using Net::SFTP cccc Programming 1 10-31-2007 06:23 AM
How do I use sftp to upload my web site? (no sftp tar command) johnMG Linux - Networking 6 06-21-2005 09:14 PM
Files truncated by sftp/sftp-server at 65kb gato Linux - Networking 1 12-18-2003 10:29 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:38 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration