Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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?
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..!!
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?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.