LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 07-23-2019, 06:51 AM   #1
sujitb
LQ Newbie
 
Registered: Dec 2018
Posts: 17

Rep: Reputation: Disabled
SFTP configuration


Hi,

I am configuring SFTP on the server and below changes has been done on /etc/ssh/sshd_config file

# line 135: comment out and add a line like below
#Subsystem sftp /usr/lib/ssh/sftp-server
Subsystem sftp internal-sftp

X11Forwarding no
AllowTcpForwarding no

# systemctl restart sshd

Let me know if anything else need to configure for SFTP.

Thanks..
 
Old 07-23-2019, 07:14 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by sujitb View Post
Hi,
I am configuring SFTP on the server and below changes has been done on /etc/ssh/sshd_config file

# line 135: comment out and add a line like below
#Subsystem sftp /usr/lib/ssh/sftp-server
Subsystem sftp internal-sftp

X11Forwarding no
AllowTcpForwarding no

# systemctl restart sshd

Let me know if anything else need to configure for SFTP.
Do you actually HAVE a program called "internal-sftp"?? Normally the "sftp-server" line is what you uncomment. And if you want to know if it works or not, why didn't you just TRY IT? Would have been faster than posting here.
 
1 members found this post helpful.
Old 07-23-2019, 07:15 AM   #3
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS,Manjaro
Posts: 5,627

Rep: Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695
sftp should have worked out-of-the-box if ssh was working.
None of the changes you made should significantly change sftp operation. You made a change to the settings for X11 forwarding and TCP forwarding that really have little to do with sftp. (NOT to say that those settings are bad ideas.)

The only thing you have done to sftp is move service from the external executable to the internal server. That is a correct change had you specified OTHER settings supported by the internal server, but you have not done that.

What is your intent? What are you trying to get sftp to do differently than the default behavior?
 
2 members found this post helpful.
Old 07-23-2019, 10:15 PM   #4
sujitb
LQ Newbie
 
Registered: Dec 2018
Posts: 17

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by TB0ne View Post
Do you actually HAVE a program called "internal-sftp"?? Normally the "sftp-server" line is what you uncomment. And if you want to know if it works or not, why didn't you just TRY IT? Would have been faster than posting here.
Thanks for your response.. I tried with with above configuration but it did not work. I forgot to update this. My bad..!!
 
Old 07-24-2019, 07:00 AM   #5
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by sujitb View Post
Thanks for your response.. I tried with with above configuration but it did not work. I forgot to update this. My bad..!!
And if you post a problem description of something other than "did not work", we might be able to help.
 
Old 07-28-2019, 10:48 PM   #6
sujitb
LQ Newbie
 
Registered: Dec 2018
Posts: 17

Original Poster
Rep: Reputation: Disabled
Any comment on this? I am not able to configure SFTP.
 
Old 07-28-2019, 10:55 PM   #7
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.9.2009
Posts: 5,727

Rep: Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211
Quote:
Originally Posted by sujitb View Post
Any comment on this? I am not able to configure SFTP.
I’m pretty sure we’re all waiting for more from you than “it did not work”.
 
Old 07-29-2019, 04:35 AM   #8
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,804

Rep: Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140
If a firewall is active on the server, check that you have allowed access to this service.
 
Old 07-29-2019, 05:06 AM   #9
sujitb
LQ Newbie
 
Registered: Dec 2018
Posts: 17

Original Poster
Rep: Reputation: Disabled
SFTP is not working

Hi,

I am configuring SFTP on the server and below changes has been done on /etc/ssh/sshd_config file

# line 135: comment out and add a line like below
#Subsystem sftp /usr/lib/ssh/sftp-server
Subsystem sftp internal-sftp

X11Forwarding no
AllowTcpForwarding no

# systemctl restart sshd

Let me know if anything else need to configure for SFTP.

Thanks..
 
Old 07-29-2019, 06:03 AM   #10
dc.901
Senior Member
 
Registered: Aug 2018
Location: Atlanta, GA - USA
Distribution: CentOS/RHEL, openSuSE/SLES, Ubuntu
Posts: 1,005

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
Quote:
Originally Posted by sujitb View Post
Hi,

I am configuring SFTP on the server and below changes has been done on /etc/ssh/sshd_config file

# line 135: comment out and add a line like below
#Subsystem sftp /usr/lib/ssh/sftp-server
Subsystem sftp internal-sftp

X11Forwarding no
AllowTcpForwarding no

# systemctl restart sshd

Let me know if anything else need to configure for SFTP.

Thanks..
So, what happens when you try to connect via SFTP?
What is the exact message in log file on server, and what is the exact message on client?
 
1 members found this post helpful.
Old 07-29-2019, 07:01 AM   #11
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by sujitb View Post
Hi,
I am configuring SFTP on the server and below changes has been done on /etc/ssh/sshd_config file

# line 135: comment out and add a line like below
#Subsystem sftp /usr/lib/ssh/sftp-server
Subsystem sftp internal-sftp

X11Forwarding no
AllowTcpForwarding no

# systemctl restart sshd

Let me know if anything else need to configure for SFTP.
What, exactly, do you think that copying and pasting your first post AGAIN, is going to tell us??? You've been asked questions which you either haven't answered, or haven't answered clearly. You've provided no information about any error(s)/message(s), or even told us what version/distro of Linux you're using. Restating your same question is pointless.

There are THOUSANDS of tutorials you can find on how to enable sftp..have you followed any of them?
 
  


Reply



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 - Server

All times are GMT -5. The time now is 08:01 PM.

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
Open Source Consulting | Domain Registration