Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 21

Thread: How to allow logon to the Knoppix machine via Telnet and ftp

  1. #11
    Senior Member registered user
    Join Date
    Feb 2006
    Location
    Canada
    Posts
    204
    Looks like it's going to be a challenge to have the telnetd and ftpd up and running.

    Anyway, I have the putty and psftp up and running on the windows xp box and ssh on the knoppix box right now. The putty.exe and psftp.exe are small in size so I can alway put them on a pen drive or floppy with me.

    I need to do more research on the newsgroup before I can proceed for the attempt to put ftpd and telnetd back to the knoppix.

    Rgds,
    Chip

  2. #12
    Senior Member registered user
    Join Date
    Feb 2006
    Location
    Canada
    Posts
    204
    I did my first trial to install ftpd on the top of a running Knoppix but fail.

    My original plan was download a binary ftpd package and install the package on the top of the Knoppix I'm running.

    With my windows XP laptop connected to the internet, went to the http://packages.debian.org/stable/allpackages.html site but cannot download the binary package. So I decided to go the hard way, download the source tar file from the site. (linux-ftpd_0.17.orig.tar.tar)

    Then I connect my XP box to the local network I had with the Knoppix box, sftp the file to the Knoppix box to the directory /home/knoppix/tmp

    Expand the tar file by "tar -xvf linux-ftpd_0.17.orig.tar.tar"

    The whole source was expanded to /home/knoppix/tmp/linux-ftpd-0.17

    There are two more directories within the directory linux-ftdp-0.17, one is support and the other is ftpd. I went into both of the directories and find they have some c programs in there. Both directory has their own Makefile. The ftpd Makefile references to the support directory. So I start compile the support one first.

    Went to the support directory and type in "make".

    Error came back complaining the first line on the Makefile "include ../MCONFIG". Check the parent directory, there is no such file called MCONFIG, but instead there is one called MCONFIG.in. I edited the Makefile to point to the MCONFIG.in file and re-try again.

    No good, this time complained about missing separator in the MCONFIG.in file. So I commended out the line "include ../MCONFIG"

    Try again, this time compilation went through. I inspect the directory, all the object files are there.

    Went to the ftpd directory, did the same thing and also need to change the 1st line of the Makefile, (i.e. commented out the include ../MCONFIG line)

    But this time the compilation cannot finish, I got the error message

    ftpd.o: In function 'pass':
    ftpd.c: (.text+0x121e): undefined reference to 'crypt'
    collect2: ld returned 1 exit status
    make: *** [ftpd] Error 1

    I don't have much knowlege on the Makefile nor the compile of programs so I just stop here. But I feel it maybe related to the 1st line I commented out on the Makefile.

    Because when I browse the MCONFIG.in file, the content is as follows

    ### begin of the file
    # Dirs
    INSTALLROOT
    SBINDIR
    MANDIR

    # Modes
    DAEMONMODE
    MANMODE

    # Compiling
    ALLWARNINGS
    CC
    CFLAGS
    LDFLAGS
    LIBS
    YACC

    # Features
    BSDSIGNAL
    SHADOW
    FN(crypt)
    FN(snprintf)
    TYPE(socklen_t)

    ### End of the file

    I suspect the problem related to the MCONFIG.in file because the error message I got containing the word 'crypt' which I can find on the MCONFIG.in file.

    Has anybody encounter this problem before and know how to solve it?

    Rgds,
    Chip

  3. #13
    Administrator Site Admin-
    Join Date
    Apr 2003
    Location
    USA
    Posts
    5,441
    Quote Originally Posted by chip.ling
    I did my first trial to install ftpd on the top of a running Knoppix but fail.
    If you feel that you must add software to the live CD, try this suggestion:
    • Go to the KLIK forum and read about Klik.

      Go to the Klik website and see if there isn't a FTP package thay can make just for you and download to your system.

      If for some extremely strange reason there is not a FTP package available, post a message asking for one. Probono is great about such things and is extremely like to help you out.

  4. #14
    Senior Member registered user
    Join Date
    Feb 2006
    Location
    Canada
    Posts
    204
    Thanks for the direction.

    Rgds,
    Chip

  5. #15
    Administrator Site Admin-
    Join Date
    Apr 2003
    Location
    USA
    Posts
    5,441
    I just want to add to this that the Knoppix CD package list (as well as the DVD list) shows that the ftp server ftpd is included on the CD. But I can't find how to start it or how to configure it on a live CD (which makes one wonder why even waste the space). Typing ftpd at a shell prompt doesn't seem to find it.
    ---
    Verifying of md5 checksum and burning a CD at slow speed are important.

  6. #16
    Senior Member registered user
    Join Date
    Feb 2006
    Location
    Canada
    Posts
    204
    In that case, I believe the program ftpd is inside the CD. Just don't know how to retrieve it back so that the Linux FS can see it.

  7. #17
    Senior Member registered user
    Join Date
    Apr 2005
    Posts
    159
    Both in.ftpd and in.telnetd are present under /usr/sbin. By default, inetd is not started, though. Just issue (as root) "/etc/init.d/inetd restart". This will start inetd, which has a line to enable the ftp service. By default ftpd is under control of tcpd, which means you need to adjust /etc/hosts.allow and/or /etc/hosts.deny to allow other systems to connect (localhost seems alright). You can also run ftpd without tcpd supervision by replacing /usr/sbin/tcpd directly by /usr/sbin/in.ftpd - no need to tamper with the /etc/hosts.* files in this case. I could not get a similar trick to work for telnetd, though; it seems to insist on using SSL...

  8. #18
    Senior Member registered user
    Join Date
    Feb 2006
    Location
    Canada
    Posts
    204
    Quote Originally Posted by Harry Kuhman
    I just want to add to this that the Knoppix CD package list (as well as the DVD list) shows that the ftp server ftpd is included on the CD. But I can't find how to start it or how to configure it on a live CD (which makes one wonder why even waste the space). Typing ftpd at a shell prompt doesn't seem to find it.
    Harry, I finally made the ftpd works. Here is what I did.

    Step 1: start the machine with Knoppix on the cd rom and have the network portion setup. (i.e. IP address of the machine is defined). Also add passwd to root and knoppix.

    Step 2: Edit the hosts.deny and hosts.allow files

    sudo vi /etc/hosts.deny
    (delete the line 'ALL:PARANOID' and save the file)

    sudo vi /etc/hosts.allow
    (modify the line 'ALL : ALL@ALL : DENY' to 'ALL : ALL@ALL : ALLOW' and save the file)

    (Or define the machines you can logon to the host in the hosts.allow file, that should be the way for security purpose).

    Step 3: sudo /etc/init.d/inetd restart

    Step 4: from a remote machine, start the ftp client and connect to the knoppix host using the knoppix. Now the ftp server is up and running in the knoppix machine. I can connect to the knoppix box via ftp.

    I still not able to make telnet server up and running but I use ssh instead at this point.

    Step 5: sudo /etc/init.d/ssh start

    ssh is up and running and I can connect to the knoppix host via putty from the other windows Xp machine. I test both the ssh connection and the ftp connect and they can be both exist without conflict.

    Rgds,
    Chip

  9. #19
    Senior Member registered user
    Join Date
    Nov 2002
    Location
    Long Island, NY, USA
    Posts
    1,256
    If you knoppix-install to a harddrive, the ssh client is up and running by default - so you can ssh to another ssh server.

    If you want a knoppix-installered box to be a ssh server, simply open a root shell and issue the following commandline:

    Code:
    update-rc.d ssh defaults
    and your ssh server should be up and running. This should setup sshd correctly for you. BTW, you only have to do this once on any given ssh server you want to set up.

    I have a knoppix-installered LAN for my computer science students. I setup up one box as a ssh server that they can all log-into from anywhere in the school and from home to compete their work and save their files. They use ssh userid@xxx.xxx.xxx.xxx from a shell and fish://userid@xxx.xxx.xxxxxx from Konqueror mostly. Sometimes, we'll use sftp as well.

    HTH,
    AJG

  10. #20
    Senior Member registered user
    Join Date
    Feb 2006
    Location
    Canada
    Posts
    204
    [quote="chip.lingI finally made the ftpd works. [/quote]

    Oop, just find a little problem. Using the steps I mentioned before, 'knoppix' id is the only id I can logon to the knoppix box via ftp.

    I created another user account, able to use that id/password connect to the knoppix box via putty. But when I tried to logon to the knoppix box by ftp using the newly created account. I got a '530 Login incorrect. Login failed' ftp error.

    Then I tried to use the 'root' account and it reponsed back with the same error message.

    Anyone knows how to fix it? I am thinking maybe the newly created account need to be in a special group. But then what group it should be in?

    Rgds,
    Chip

Page 2 of 3 FirstFirst 123 LastLast

Similar Threads

  1. i got knoppix to work now i need help with telnet
    By 00zero in forum General Support
    Replies: 0
    Last Post: 09-11-2004, 01:43 AM
  2. Knoppix 3.4 Telnet
    By SpOoK in forum Networking
    Replies: 1
    Last Post: 06-06-2004, 02:41 AM
  3. Machine asks for cd at logon screen
    By vinoko in forum General Support
    Replies: 1
    Last Post: 01-23-2004, 06:05 PM
  4. knoppix telnet question
    By yoda54 in forum General Support
    Replies: 0
    Last Post: 12-14-2003, 01:22 PM
  5. Telnet / Termx on KNOPPIX
    By qsecopr in forum General Support
    Replies: 1
    Last Post: 04-01-2003, 01:46 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


A-Tech 8GB DDR3 1600 PC3-12800 Laptop SODIMM 204-Pin Memory RAM PC3L DDR3L 1x 8G picture

A-Tech 8GB DDR3 1600 PC3-12800 Laptop SODIMM 204-Pin Memory RAM PC3L DDR3L 1x 8G

$13.99



HyperX FURY DDR3 8GB 16GB 32GB 1600 MHz PC3-12800 Desktop RAM Memory DIMM 240pin picture

HyperX FURY DDR3 8GB 16GB 32GB 1600 MHz PC3-12800 Desktop RAM Memory DIMM 240pin

$12.90



Samsung 32GB (4x 8GB) PC3L-12800R 2RX4 ECC Server Memory M393B1K70PH0-YK0 RDIMM picture

Samsung 32GB (4x 8GB) PC3L-12800R 2RX4 ECC Server Memory M393B1K70PH0-YK0 RDIMM

$17.49



A-Tech 8GB PC3-12800 Desktop DDR3 1600 MHz Non ECC 240-Pin DIMM Memory RAM 1x 8G picture

A-Tech 8GB PC3-12800 Desktop DDR3 1600 MHz Non ECC 240-Pin DIMM Memory RAM 1x 8G

$13.99



Samsung 128GB (4x 32GB) M86B4G70DM0-CMA3 PC3-14900L 4Rx4 DDR3 ECC Reg Server Mem picture

Samsung 128GB (4x 32GB) M86B4G70DM0-CMA3 PC3-14900L 4Rx4 DDR3 ECC Reg Server Mem

$39.99



HyperX FURY RAM DDR4 16GB 8GB 32GB 4GB 3200 2666 2400 2133 Desktop Memory DIMM picture

HyperX FURY RAM DDR4 16GB 8GB 32GB 4GB 3200 2666 2400 2133 Desktop Memory DIMM

$9.64



Kingston HyperX FURY DDR3 8GB 16GB 32G 1600 1866 1333 Desktop Memory RAM DIMM picture

Kingston HyperX FURY DDR3 8GB 16GB 32G 1600 1866 1333 Desktop Memory RAM DIMM

$13.25



8GB PC3L-12800S 1600MHz SODIMM DDR3 RAM | Grade A picture

8GB PC3L-12800S 1600MHz SODIMM DDR3 RAM | Grade A

$12.00



A-Tech 256GB 4x 64GB 4Rx4 PC4-19200 ECC Load Reduced LRDIMM Server Memory RAM picture

A-Tech 256GB 4x 64GB 4Rx4 PC4-19200 ECC Load Reduced LRDIMM Server Memory RAM

$287.96



A-Tech 128GB 2x 64GB 4Rx4 PC4-19200 ECC Load Reduced LRDIMM Server Memory RAM picture

A-Tech 128GB 2x 64GB 4Rx4 PC4-19200 ECC Load Reduced LRDIMM Server Memory RAM

$143.98