LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 01-23-2014, 11:30 PM   #1
fwixgamer
LQ Newbie
 
Registered: Jan 2014
Posts: 4

Rep: Reputation: Disabled
Unhappy help me to connect to my ftp server


Hey guys , I'm new here and specially top newbie with linux ,
now my problem is ; i can't access to my ftp server , so can u help me out
basically what i did :
connect in root mode , install vsftpd then go to filezilla ; enter the host which is this ip 95.130.10.217 and name of the server plus the password but this is what get :
Status: Connecting to 95.130.10.217...
Response: fzSftp started
Command: open "MGUSERVER@95.130.10.217" 22
Command: Trust new Hostkey: Yes
Command: Pass: ********
Error: Authentication failed.
Error: Critical error
Error: Could not connect to server

so do i need to setup something in the vsftpd or what ?

EDIT : hey again , i did follow this tutorial
yum install vsftpd
chkconfig vsftpd on
service vsftpd start
groupadd ftp-users
chown root:ftp-users /home/
useradd -g ftp-users -d /home/ spy
passwd spy

now i have
Status: Connecting to 95.130.10.217:21...
Status: Connection established, waiting for welcome message...
Response: 220 (vsFTPd 2.3.5)
Command: USER MGUSERVER
Response: 530 This FTP server is anonymous only.
Error: Could not connect to server

and yes in the vsfptd.conf anonymous are = NO

so where is the problem ?
sorry for my English

Last edited by fwixgamer; 01-24-2014 at 12:56 AM.
 
Old 01-24-2014, 01:17 AM   #2
ukiuki
Senior Member
 
Registered: May 2010
Location: Planet Earth
Distribution: Debian
Posts: 1,030

Rep: Reputation: 385Reputation: 385Reputation: 385Reputation: 385
Welcome to LQ!

Few things, you need a regular user besides root to safely connect to the service, if anonymous is not allowed, strongly recommend to do that.

In the vsftpd.conf:
To enable local users to log in:
Code:
local_enable=YES
you need this in order to be able to connect as local user in its directory:
Code:
tilde_user_enable=YES
Hopefuly this will do for more info read the manual:
Code:
man vsftpd.conf
Regards
 
1 members found this post helpful.
Old 01-24-2014, 01:33 AM   #3
fwixgamer
LQ Newbie
 
Registered: Jan 2014
Posts: 4

Original Poster
Rep: Reputation: Disabled
thx uki for ur help , i just found how to connect , in filezilla i switch the protocole from ftp to sftp , so now i can connect , just one things i can see everything and download everything but i can't write any file in the server so how to fix that ?

Status: Creating directory '/Data'...
Command: cd "/"
Response: New directory is: "/"
Command: mkdir "Data"
Error: mkdir /Data: permission denied
Command: mkdir "/Data"
Error: mkdir /Data: permission denied
thx
 
Old 01-24-2014, 01:41 AM   #4
fwixgamer
LQ Newbie
 
Registered: Jan 2014
Posts: 4

Original Poster
Rep: Reputation: Disabled
edit : okey now i can connect with ftp \i did put "tilde_user_enable=YES"/ thx , but still i can't remove or add anything , i can just download or see files so where can be problems ?

Last edited by fwixgamer; 01-24-2014 at 02:18 AM.
 
Old 01-24-2014, 02:16 AM   #5
SAbhi
Member
 
Registered: Aug 2009
Location: Bangaluru, India
Distribution: CentOS 6.5, SuSE SLED/ SLES 10.2 SP2 /11.2, Fedora 11/16
Posts: 665

Rep: Reputation: Disabled
Quote:
#write_enable=YES
uncomment this one an check your ftp home dir permissions before trying anything.
 
Old 01-24-2014, 02:33 AM   #6
fwixgamer
LQ Newbie
 
Registered: Jan 2014
Posts: 4

Original Poster
Rep: Reputation: Disabled
hey sabhi yes i noticed that i didn't remove the # thx , and btw for the write access denied thing i used chmod -R 777 and yeah it's working so basically i can create a folder then use this command and put whatever programme or website , games i want then i m good it is not risky ? especially i ll use my server for team speak plus download location for my gamers friend ?
 
Old 01-24-2014, 08:12 PM   #7
stateless
Member
 
Registered: Jan 2013
Distribution: Debian
Posts: 166
Blog Entries: 1

Rep: Reputation: 4
Quote:
Originally Posted by fwixgamer View Post
thx uki for ur help , i just found how to connect , in filezilla i switch the protocole from ftp to sftp , so now i can connect , just one things i can see everything and download everything but i can't write any file in the server so how to fix that ?
Just a note: if you put sftp in the Filezilla settings, that means you are no longer using FTP, rather you are using SFTP. SFTP is a service that runs over SSH (the software you used to log in to the server.) FTP is usually used for making files available to the public.
 
Old 01-25-2014, 12:23 AM   #8
SAbhi
Member
 
Registered: Aug 2009
Location: Bangaluru, India
Distribution: CentOS 6.5, SuSE SLED/ SLES 10.2 SP2 /11.2, Fedora 11/16
Posts: 665

Rep: Reputation: Disabled
Quote:
Just a note: if you put sftp in the Filezilla settings, that means you are no longer using FTP, rather you are using SFTP. SFTP is a service that runs over SSH (the software you used to log in to the server.) FTP is usually used for making files available to the public.
ohhh i suspect this !!! you may need to read more on SFTP.

---------- Post added 01-25-14 at 01:24 AM ----------

Quote:
Originally Posted by fwixgamer View Post
hey sabhi yes i noticed that i didn't remove the # thx , and btw for the write access denied thing i used chmod -R 777 and yeah it's working so basically i can create a folder then use this command and put whatever programme or website , games i want then i m good it is not risky ? especially i ll use my server for team speak plus download location for my gamers friend ?
yeah as long as you are using it for file sharing thats what it design to do..
 
  


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
[SOLVED] Fuzzing - Buffer Overflow - Ability Server - Could not Connect to FTP Server lee_can Linux - Server 12 06-03-2011 12:39 PM
Connect to server -> FTP is gone jcfolke Debian 7 10-14-2007 11:59 PM
Suddenly unable to connect to my web server and my ftp server. HELP! Silly22 Linux - Software 4 05-23-2004 04:42 PM
can not connect too ftp server pover Linux - Newbie 0 01-18-2002 10:03 AM
ftp server does not let you connect browny_amiga Linux - General 0 12-21-2001 07:09 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 02:34 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
Open Source Consulting | Domain Registration