Page 2 of 3
Re: How do i connect externally via FTP? get connection refu
Posted: 08 Oct 2011, 10:17
by 86ivar
Now i do not remember the shell login command, remember i used a long time finding it last time. Anyone has a table of bubba/debain commands?
Ty
Re: How do i connect externally via FTP? get connection refu
Posted: 08 Oct 2011, 10:48
by Cheeseboy
Now i do not remember the shell login command, remember i used a long time finding it last time. Anyone has a table of bubba/debain commands?
That message completely failed to parse in my brain...
What are you trying to do?
If you have a shell prompt you are already logged in.
If you want a *nix cheat sheet, you only have to type those words into google.
Best regards,
Cheeseboy
Re: How do i connect externally via FTP? get connection refu
Posted: 08 Oct 2011, 11:22
by 86ivar
when i login with putty, i login with my username and password. But i forgot the command that logs me in to the root folder. found it right now anyway, it was su.
Re: How do i connect externally via FTP? get connection refu
Posted: 08 Oct 2011, 11:34
by Ubi
Re: How do i connect externally via FTP? get connection refu
Posted: 10 Oct 2011, 06:51
by Nrde
86ivar wrote:when i login with putty, i login with my username and password. But i forgot the command that logs me in to the root folder. found it right now anyway, it was su.
Hi,
I think it's quite important to make distinction between logging into a folder and "Change the effective user id and group id to that of USER." when it comes to linux/Unix.
I mean "can I login to your root folder" and "can I have unlimited access to your computer" have slightly different meaning.
Re: How do i connect externally via FTP? get connection refu
Posted: 31 Oct 2011, 08:48
by 86ivar
Hi.
From the command:
cat /etc/proftpd/proftpd.conf|grep ServerName
I get:
ServerName "Bubba"
I have been trying the commands, looged in as root
echo "192.168.10.1 b2.localdomain b2">>/etc/hosts
/etc/init.d/proftpd start
but i get:
Starting ftp server: proftpd - ipv4 getaddrinfo 'bubba' error: Name or service not known
warning, unable to determine ip adress of 'bubba'
error: no valid servers configured
fatal: error processing configuration file '/etc/proftpd/proftpd.conf'
failed!
When i try to open or edit the proftpd.conf i get access denied.
I also tried to open the /etc/hosts folder and i also get permission denied.
My lan and wan settings is set to automatic, should i go manual?
Is it possible to copy the text output in putty to post it here?
Thank you.
Re: How do i connect externally via FTP? get connection refu
Posted: 31 Oct 2011, 09:12
by 86ivar
post4ivo wrote:Well, been tinkering some and managed to get it working!
Thanks for all the instructions in this post!!
What did you do? i also have bubba2.
Update:
been trying different combinations:
b2.localdomain b2,
b2.localdomain bubba2
When i now try to start the proftpd i get only the text:
starting ftp server: proftpd failed!
Have i fucked the settings totally now? im a noob as you might imagine.
Is it possible to backup the settings?
Re: How do i connect externally via FTP? get connection refu
Posted: 31 Oct 2011, 16:07
by ryz
Hi 86ivar,
The host name of bubba_2 is NOT b2 I think it is bubba. So Bubba 1 and 2 has the same hostname which is bubba. Bubba 3 was renamed to B3 instead of Bubba 3.
But to make sure what your own bubba has run the command
and use that name in the /etc/hosts file. You should edit that file and remove all the wrong entries you have added to that file. The command you have run adds a line to that file each time you run it so I guess you have quite a lot of lines in that file now.
Re: How do i connect externally via FTP? get connection refu
Posted: 31 Oct 2011, 16:23
by Ubi
what do you mean *exactly* by "have been trying different combinations?". COuld you please be more specific in your posts as you seem to skip some vital details that may seem trivial to you but make it very very hard for us to understand what you mean or what you did.
* what happens when you type "hostname" ?
* it seems you are getting access denied to the config files because you are not root.
* make backups of the original files BEFORE editing them.I ususally make a small shell script so I can make simple backups with a single command:
Code: Select all
touch /usr/bin/backup
chmod 755 /usr/bin/backup
nano /usr/bin/backup
then in the file copy
Code: Select all
I=`date +%Y%m%d-%H%M%S`
if [[ $1A != A && -f $1 ]]; then
echo "Backing up $1 to $1-$I";
cp -a $1 $1-$I;
else
echo "Argument missing or not existent";
Now you have a backup command that makes a time-stamped copy of your config file.
Re: How do i connect externally via FTP? get connection refu
Posted: 31 Oct 2011, 18:34
by 86ivar
ryz wrote:Hi 86ivar,
The host name of bubba_2 is NOT b2 I think it is bubba. So Bubba 1 and 2 has the same hostname which is bubba. Bubba 3 was renamed to B3 instead of Bubba 3.
But to make sure what your own bubba has run the command
and use that name in the /etc/hosts file. You should edit that file and remove all the wrong entries you have added to that file. The command you have run adds a line to that file each time you run it so I guess you have quite a lot of lines in that file now.
The hostname command gives:
bubba
I have deleted all the lines now, but i still cant get is to work, am i supposed to write "localdomain" or my localdomain, if so how do i find my localdomain?
I wrote exactly:
echo "192.168.10.1 bubba.localdomain bubba">>/etc/hosts
I still get, when staring the proftpd:
starting ftp server:proftpd failed!
But if i restart proftpd instead i get:
starting ftp server: proftpd - ipv6 getaddrinfo 'bubba.localdomain' error: Name or service not known
I see that the list in the hosts file has 6 more lines than the ones posted by the guys in this tread. I have:
127.0.0.1 localhost.localdomain localhost
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ffo2::3 ip6-allhosts
192.168.10.1 bubba.localdomain bubba (wich i added)
Thank you for your help

Re: How do i connect externally via FTP? get connection refu
Posted: 01 Nov 2011, 14:59
by Ubi
just for fun: if you're not using IPv6, can you turn it off and try again?
in /etc/proftpd/proftpd.conf, find the line that says "UseIPv6" and set it to "off"
Re: How do i connect externally via FTP? get connection refu
Posted: 01 Nov 2011, 15:57
by 86ivar
Ubi wrote:just for fun: if you're not using IPv6, can you turn it off and try again?
in /etc/proftpd/proftpd.conf, find the line that says "UseIPv6" and set it to "off"
Cant find that line
I also tried to remove those six lines in the host file, but it didnt help.
Re: How do i connect externally via FTP? get connection refu
Posted: 01 Nov 2011, 16:17
by Ubi
it' should be there, but you can always add it manually.
Code: Select all
echo "UseIPv6 off" >> /etc/proftpd/proftpd.conf
Re: How do i connect externally via FTP? get connection refu
Posted: 01 Nov 2011, 20:00
by 86ivar
Ubi wrote:it' should be there, but you can always add it manually.
Code: Select all
echo "UseIPv6 off" >> /etc/proftpd/proftpd.conf
That did it!! FTP up and running! Thank you!!
Re: How do i connect externally via FTP? get connection refu
Posted: 25 Aug 2012, 03:29
by Thomas_l
I have the same problem you had with connection to ftp refused. I have problems to understand how you you got it solved and Im very hesitant to editing something outside the user interface, so I rather wait until this gets solved by regular sofware updates.
Now. I just updated my B3 to version 2.5.0.2. Unfortunately the problem remains for me.
Is there an easier way to explain how it can be solved?