LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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


Closed Thread
  Search this Thread
Old 06-04-2019, 08:42 PM   #16
Huamin
Member
 
Registered: May 2011
Posts: 562

Original Poster
Rep: Reputation: 12

Tyler,
What to adjust?
 
Old 06-04-2019, 09:04 PM   #17
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,702

Rep: Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896
Have you verified that vsftpd is actually running?

Can login to ftp server from itself?

I have not explicitly added a helper rule and vsftp works on my system.
 
1 members found this post helpful.
Old 06-04-2019, 09:05 PM   #18
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
If you've updated your firewall, is ftp even running?
Code:
netstat -tp | grep ftp
 
Old 06-04-2019, 10:26 PM   #19
Huamin
Member
 
Registered: May 2011
Posts: 562

Original Poster
Rep: Reputation: 12
I get no details by this command. What to adjust?
 
Old 06-04-2019, 11:57 PM   #20
Turbocapitalist
LQ Guru
 
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 7,309
Blog Entries: 3

Rep: Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721
Quote:
Originally Posted by Huamin View Post
I get no details by this command.
Try instead

Code:
service sshd status
That will tell you if OpenSSH is running, then ...

Quote:
Originally Posted by Huamin View Post
What to adjust?
Expectations. FTP has only disadvantages, including being insecurable and, as you are learning, very hard to begin to set up. A move to SFTP is required.
 
Old 06-05-2019, 12:02 AM   #21
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 Huamin View Post
I get no details by this command. What to adjust?
You need to enable and start the ftpd service. Do you know how to do that?
I do not, since, as has been said, ftp is unsecure and obsolete, and I don't even have it installed.

Until now, folks have been presuming that there was a firewall issue...but if the ftpd service is not running, then connections are going to fail.
I'm suggesting that's the OP's core issue.

Last edited by scasey; 06-05-2019 at 12:05 AM.
 
Old 06-05-2019, 03:25 AM   #22
Huamin
Member
 
Registered: May 2011
Posts: 562

Original Poster
Rep: Reputation: 12
Here is what I've got

[root@CentOS65x64 huamin]# service sshd status
openssh-daemon (pid 2042) is running...

I also have created SFTP acccount like

[root@CentOS65x64 huamin]# useradd -g sftpusers -d /upload -s /sbin/nologin sftpuser0
\[root@CentOS65x64 huamin]# passwd sftpuser0
Changing password for user sftpuser0.
New password:
Retype new password:
passwd: all authentication tokens updated successfully.

but I still have same issue to access

sftp://113.255.213.124/
 
Old 06-05-2019, 03:34 AM   #23
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,702

Rep: Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896
Quote:
Originally Posted by Huamin View Post
I get no details by this command. What to adjust?
service vsftpd start

I don't think Windows has a built in sftp client. You need to use either winscp or filezilla.
 
1 members found this post helpful.
Old 06-05-2019, 03:53 AM   #24
Huamin
Member
 
Registered: May 2011
Posts: 562

Original Poster
Rep: Reputation: 12
Thanks a lot. I can now see the folder "pub" within SFTP. How to correct attached error as I expect to copy files into this SFTP?
Attached Thumbnails
Click image for larger version

Name:	43b.png
Views:	12
Size:	13.3 KB
ID:	30704  
 
Old 06-05-2019, 04:21 AM   #25
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,702

Rep: Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896
Your using ftp not sftp. The file browser automatically logins as an anonymous connection which is write only. To allow anonymous write by editing your /etc/vsftpd.conf file. I don't know what you are trying to accomplish


As already stated ftp isn't secure so anyone snooping on your network can see everything. sftp is better but again you need to use a GUI program as posted above.
 
Old 06-05-2019, 05:27 AM   #26
Huamin
Member
 
Registered: May 2011
Posts: 562

Original Poster
Rep: Reputation: 12
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.

Last edited by Huamin; 06-05-2019 at 05:29 AM.
 
Old 06-05-2019, 06:15 AM   #27
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,702

Rep: Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896
In the /etc/vsftpd.conf verify the following is uncommented.
Code:
full_access
anon_upload_enable=YES
You will also need to create a directory within /var/ftp/pub/ that is writable for all. /var/ftp/pub/ is the default anonymous ftp directory.
 
Old 06-05-2019, 07:03 AM   #28
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 Huamin View Post
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.
I'll try again, but there seems little point. You've been here EIGHT YEARS now, and provide little information, feedback, or even answer questions when asked. Even now, you're asking about using SFTP and wanting to know how to adjust FTP to use it...when they're two TOTALLY DIFFERENT PROTOCOLS, and aren't connected in any way. Be clear about what you're doing.

You are now saying you're using SFTP, and "expect to be able to write to this SFTP"....and are asking what to adjust in your FTP configuration?? FTP is **still not** SFTP, which you (AGAIN) should be using. If you're going to use it, great...make your 'adjustments' in the sshd_config file.

If you want an 'anonymous' user to log in with SFTP, you can't...SSH needs an account to tie to. While you *CAN* CHROOT SFTP and create a user that can log in with no authentication or shell access, it's certainly not a wise thing to do. Anonymous upload using ANY protocol isn't good.
 
Old 06-05-2019, 09:06 PM   #29
Huamin
Member
 
Registered: May 2011
Posts: 562

Original Poster
Rep: Reputation: 12
Michael,
Can you help and advise, as /etc/vsftpd.conf is not existing now?
 
Old 06-05-2019, 09:31 PM   #30
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,702

Rep: Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896
The correct absolute path is /etc/vsftpd/vsftpd.conf
 
  


Closed Thread



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
FTP error -ftp://192.168.122.176/repodata/repomd.xml: [Errrno 14] FTP error 550 - petespa CentOS 3 11-28-2015 05:07 PM
when I use ftp://user@ftp.blah.com it works. But when I type just ftp.blah.com says.. hunterhunter Linux - General 15 03-05-2014 09:12 AM
[SOLVED] FTP Server behind NAT (IPtables) List FTP directories Problem turki_00 Linux - Newbie 5 02-05-2012 08:44 AM
ftp from LInux to Serv-U ftp server problem csross Linux - General 2 11-07-2005 04:35 PM
problem with ftp on mandrake 10.1 Official, ftp speeds system wide (anybody noticed?) equinox Mandriva 15 11-10-2004 02:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:30 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