FTP

407 views
Skip to first unread message

Breno

unread,
Nov 10, 2010, 9:09:44 PM11/10/10
to minix3
Hi,

I'm trying to connect to the MINIX 3.1.8 FTP in VirtualBox 3.2.10.
I typed ipconfig on Windows prompt then and I took note of the
VirtualBox IP.

I typed this at MINIX:
# cat >/etc/rc.daemons
daemonize tcpd telnet in.telnetd
daemonize tcpd ftp in.ftpd

And rebooted.

But when I try to connect Filezilla to the IP. I got the following
message:
"ECONNREFUSED - Connection refused by server"

(the username(root) and password are right)

What am I doing wrong?

Thanks in advance,

- Breno Calazans

Breno

unread,
Nov 10, 2010, 9:38:43 PM11/10/10
to minix3
I looked over some more and I correted some mistakes that I made, but
still having problems.

I typed ifconfig in MINIX and obtained 10.0.2.15 IP.

So I tried to connect to it but it fails due time out.

What should I do?

Antoine LECA

unread,
Nov 11, 2010, 3:27:38 AM11/11/10
to min...@googlegroups.com
Breno wrote:
> (the username(root) and password are right)

Thou do NOT want to use root access by FTP (or any other remote
connected protocol).

Better use bin user; it has the same password as root in MINIX.


Antoine

Richard van Heuven enzovoort

unread,
Nov 18, 2010, 11:45:31 AM11/18/10
to minix3
You cannot connect to 10.0.2.* because that is a different subnet.
You have to setup port forwarding inside VirtualBox. For an example
on how to do this:

http://sk.c-wd.net/wp/2008/08/17/virtualbox-port-forwarding-with-windows-host/

I have port 2222 mapped to 22 (for ssh) and 2121 to 21 (for ftp). I
connect from the host machine to localhost:2222 and localhost:2121.
Alternatively, if your router supports it, use bridged networking
instead of NAT. Then minix will get an IP from your router and you
connect to that IP (and any communication between host and guest will
go through the router, which might not be optimal, but may be
sufficient for you).

pikpik

unread,
Nov 19, 2010, 8:04:07 AM11/19/10
to minix3
Hi,

On Nov 10, 9:38 pm, Breno wrote:
> I looked over some more and I correted some mistakes that I made, but
> still having problems.
>
> I typed ifconfig in MINIX and obtained 10.0.2.15 IP.
>
> So I tried to connect to it but it fails due time out.
>
> What should I do?
>

As Richard suggested, bridged networking might be an option.

To set it up in VirtualBox (for Windows, at least) here are some
steps:

1. Open VirtualBox

2. Select the virtual machine

3. Click "Settings"

4. Select "Network"

5. In the "Adapter 1" tab, for "Attached to:" choose "Bridged
Adapter."


As Antoine pointed out, you should use an account less powerful than
root to log into your MINIX remotely, for security reasons.
Interestingly, I just tried bridging my MINIX's network and logging in
as root using SSH, but MINIX didn't allow the root account without a
password set.

pikpik
Reply all
Reply to author
Forward
0 new messages