Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
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.
What are you using on the client side to make that connection?
Are you
Code:
cd pub
before attempting the upload? I can connect to your server anonymously, but can't upload either. You must not have the permissions set correctly on the pub folder. What are they?
...and...
Quote:
Originally Posted by michaelk
You need to change permissions to allow anyone to write to the directory but please do not allow anonymous login or writing on a public ftp server. You need to configure ssl/tls. In addition you need to use a ftp client that has ssl capability like lftp or a GUI like filezilla.
Guys, from post #26, where the OP said:
Quote:
Originally Posted by Huamin
I was accessing sftp://113.255.213.124/ and am able to see the folder "pub" within it. What to adjust, within /etc/vsftpd.conf? I expect to be able to write to this SFTP.
(bolded parts for emphasis)
This is much like the OP's MANY other threads; what little you can drag out is contradicted or confusing. He's saying he wants SFTP now, but for some other-worldly reason, thinks making changes to the vsftpd configuration will help.
Hi Scasey,
Can I have more details to adjust privileges of pub folder, like to create proper user account for accessing it?
Perhaps, if you were to post some details of what you have set up now. We're not mind readers. We can't tell you what's wrong if you won't show us what you've done.
This is much like the OP's MANY other threads; what little you can drag out is contradicted or confusing. He's saying he wants SFTP now, but for some other-worldly reason, thinks making changes to the vsftpd configuration will help.
Yeah. Don't disagree with your observation at all. He did switch from ftp to sftp and back again...<sigh>
Although the OP posted sftp I think it was in error and actually used ftp. I can use sftp:// in the Windows file browser but it is associated with WinSCP because that is what that particular computer has installed otherwise an error message should be displayed. pub is the ftp default anonymous directory.
Although the OP posted sftp I think it was in error and actually used ftp. I can use sftp:// in the Windows file browser but it is associated with WinSCP because that is what that particular has installed otherwise an error message should be displayed. pub is the ftp default anonymous directory.
Another point: The OP says they configured an "sftp user" with /sbin/nologin shell. With that shell, the user can't login at all, in my experience. That shell works to allow ftp access only to a user, but sftp won't work.
Still, until the OP decides to tell us what he's actually doing and how he's configured his ftpd server, I'm reluctant to try to help futher.
Another point: The OP says they configured an "sftp user" with /sbin/nologin shell. With that shell, the user can't login at all, in my experience. That shell works to allow ftp access only to a user, but sftp won't work.
Still, until the OP decides to tell us what he's actually doing and how he's configured his ftpd server, I'm reluctant to try to help futher.
I use /sbin/nologin with OpenSSH's sftp server. It works fine.
You have been told several times that SFTP (really SSH) and FTP are not related, at all.
There is not configuration you can do on vsftpd that will affect sshd.
Make a clear choice: SFTP or FTP?
Then let's us know what error you get (if any).
Also, share details regarding the client you are using to access the server.
You have been told several times that SFTP (really SSH) and FTP are not related, at all.
There is not configuration you can do on vsftpd that will affect sshd.
Make a clear choice: SFTP or FTP?
Then let's us know what error you get (if any).
Also, share details regarding the client you are using to access the server.
Good luck; third page of posts now, along with repeatedly asking. Please see the OP's posting history, as this is a common theme.
Huamin, unless you're going to actually post a clear question with the relevant details, why bother posting? No one is going to be able to help you without details and a clear question/goal. You were told, point blank, to not use FTP because of security concerns, and you were even handed ways of getting SFTP to allow 'anonymous' connections, but you don't even acknowledge them. You were asked questions which you don't answer. So what's the point?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.