Please note the new address for this forum : forum.excito.org. The old address redirects here but I don't know for how long. Thanks !
New user's registration have been closed due to high spamming and low trafic on this forum. Please contact forum admins directly if you need an account. Thanks !

How do i connect externally via FTP? get connection refused

Got problems with your B2 or B3? Share and get helped!
86ivar
Posts: 148
Joined: 02 Oct 2010, 11:08

Re: How do i connect externally via FTP? get connection refu

Post 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
Cheeseboy
Posts: 789
Joined: 08 Apr 2007, 12:16

Re: How do i connect externally via FTP? get connection refu

Post 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
86ivar
Posts: 148
Joined: 02 Oct 2010, 11:08

Re: How do i connect externally via FTP? get connection refu

Post 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.
Ubi
Posts: 1549
Joined: 17 Jul 2007, 09:01

Re: How do i connect externally via FTP? get connection refu

Post by Ubi »

:shock:
Nrde
Posts: 75
Joined: 17 Nov 2010, 06:41

Re: How do i connect externally via FTP? get connection refu

Post 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.
86ivar
Posts: 148
Joined: 02 Oct 2010, 11:08

Re: How do i connect externally via FTP? get connection refu

Post 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.
86ivar
Posts: 148
Joined: 02 Oct 2010, 11:08

Re: How do i connect externally via FTP? get connection refu

Post 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?
ryz
Posts: 183
Joined: 12 Feb 2009, 06:03

Re: How do i connect externally via FTP? get connection refu

Post 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

Code: Select all

hostname
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.
Ubi
Posts: 1549
Joined: 17 Jul 2007, 09:01

Re: How do i connect externally via FTP? get connection refu

Post 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.
86ivar
Posts: 148
Joined: 02 Oct 2010, 11:08

Re: How do i connect externally via FTP? get connection refu

Post 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

Code: Select all

hostname
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? :roll: :oops:

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 :)
Ubi
Posts: 1549
Joined: 17 Jul 2007, 09:01

Re: How do i connect externally via FTP? get connection refu

Post 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"
86ivar
Posts: 148
Joined: 02 Oct 2010, 11:08

Re: How do i connect externally via FTP? get connection refu

Post 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.
Ubi
Posts: 1549
Joined: 17 Jul 2007, 09:01

Re: How do i connect externally via FTP? get connection refu

Post by Ubi »

it' should be there, but you can always add it manually.

Code: Select all

echo "UseIPv6 off" >> /etc/proftpd/proftpd.conf
86ivar
Posts: 148
Joined: 02 Oct 2010, 11:08

Re: How do i connect externally via FTP? get connection refu

Post 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!!
Thomas_l
Posts: 7
Joined: 10 Dec 2011, 12:32

Re: How do i connect externally via FTP? get connection refu

Post 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?
Post Reply