RHEL 6 plain telnet & ftp servers | Unix Linux Forums | Red Hat

  Go Back    


Red Hat Red Hat is the world's leading open source technology solutions provider with offerings including Red Hat Enterprise Linux (RHEL), Fedora, open source applications, security and systems management, virtualization, and Services Oriented Architecture (SOA) solutions.

RHEL 6 plain telnet & ftp servers

Red Hat


Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 12-06-2012
rbatte1 rbatte1 is offline Forum Advisor  
Registered User
 
Join Date: Jun 2007
Last Activity: 17 April 2014, 10:51 AM EDT
Location: North-West UK
Posts: 1,243
Thanks: 369
Thanked 202 Times in 185 Posts
RHEL 6 plain telnet & ftp servers

I am being pushed from AIX onto RHEL 6 and after our first 'chuck it on' install, I have a problem. Where is the old (okay insecure) telnet & ftp server? I know that they are probably regarded as archaic now, but the source servers do not have the SSH tools, so I've got to somehow transfer the data.

Apart from this, I have CRT from VanDyke which is very nice, but the company will not pay the upgrade fee to get the SSH version, so that's going to be a pain.

I do have a closed network, so I'm not too worried about packet snooping.


For a 20+ year support of AIX (with forays into and eventually out of Solaris, SCO Unixware, Dynix, TI-UX) & HP-UX, I'm feeling especially vulnerable as I've never been so stuck. Internet searches send me all over the place without a good target.

I don't even have the client side tools installed.

Code:
# time find / -name telnet -o -name ftp        
/var/ftp

real    0m0.40s
user    0m0.19s
sys     0m0.20s
# time find / -name telnetd -o -name ftpd

real    0m0.40s
user    0m0.19s
sys     0m0.21s
#



Any suggestions? (without laughing please)

If I can get the executables, I am happy to set up inetd.conf - oh no! Where's that gone now? What's all this almost empty /etc/inittab?

Despair! At least from HP-UX I've got the lvm commands such as vgdisplay.

I was aware of a reference sheet to ease conversions, but I can't seem to find that at the moment either. Maybe I'm just having a bad day.




Robin
Sponsored Links
    #2  
Old 12-06-2012
Corona688 Corona688 is offline Forum Staff  
Mead Rotor
 
Join Date: Aug 2005
Last Activity: 17 April 2014, 6:29 PM EDT
Location: Saskatchewan
Posts: 18,531
Thanks: 681
Thanked 3,036 Times in 2,856 Posts
Quote:
Originally Posted by rbatte1 View Post
I am being pushed from AIX onto RHEL 6 and after our first 'chuck it on' install, I have a problem. Where is the old (okay insecure) telnet & ftp server? I know that they are probably regarded as archaic now, but the source servers do not have the SSH tools, so I've got to somehow transfer the data.
Install the 'ftp' and 'telnet' packages for the commandline utilities, I think 'telnetd' for telnet server(unsure), and 'proftpd' for a pretty decent FTP server.

Maybe you have xinetd instead of inetd? Being a service wrapper, it's always been kind of optional -- I've personally never understood the use, some distros have it, some don't. On systems which don't, network daemons would just be system services.
Sponsored Links
    #3  
Old 12-06-2012
admin_xor's Avatar
admin_xor admin_xor is offline
Registered User
 
Join Date: Jun 2011
Last Activity: 8 April 2014, 5:55 AM EDT
Posts: 452
Thanks: 13
Thanked 79 Times in 76 Posts
Quote:
I've personally never understood the use, some distros have it, some don't
True, xinetd is not that much used now a days. But it sure does a good job of make the system resources available for other use. For an example, a PXE server serving TFTP requests. Now, do you really install OSes 24x7? So there's really no use of TFTP server daemon running all the time consuming memory and doing close to nothing. But, if it's controlled by xinetd, the service only started when you get a request. A server which serves occasional ftp requests, can actually use xinetd.

Well, RHEL 6 has vsftpd as the FTP server and telnet-server package for the telnet server. To install these pacakges, you would have to make use of the installation DVD as yum repository. Let me help you with that:

1. Create a file /etc/yum.repos.d/local.repo with the following contents:

Code:
[LocalRepo]
name=DVD Repo
baseurl=file:///mnt/dvd
enabled=1
gpgcheck=0

2. Create a dir /mnt/dvd and mount the DVD there

Code:
mount -t iso9660 -o ro /dev/sr0 /mnt/dvd

3. Use yum command to install the packages

Code:
yum install vsftpd telnet-server xinetd -y

/etc/inittab is almost empty because Sys V init has been abandoned to embrace upstart which can start multiple services simultaneously reducing the overall boot time. /etc/inittab is there just to define the default runlevel.

Hope this gets you started!
The Following 2 Users Say Thank You to admin_xor For This Useful Post:
Corona688 (12-07-2012), rbatte1 (12-07-2012)
    #4  
Old 12-07-2012
rbatte1 rbatte1 is offline Forum Advisor  
Registered User
 
Join Date: Jun 2007
Last Activity: 17 April 2014, 10:51 AM EDT
Location: North-West UK
Posts: 1,243
Thanks: 369
Thanked 202 Times in 185 Posts
Many thanks. Food for thought. We don't actually have original media but I think that the media images were copied onto the base server that we have cloned, so it seems to find them :-


Code:
# yum whatprovides vsftpd telnet-server xinetd
Loaded plugins: product-id, rhnplugin, security, subscription-manager
Updating certificate-based repositories.
Unable to read consumer identity
vsftpd-2.2.2-6.el6.x86_64 : Very Secure Ftp Daemon
Repo        : rhel-x86_64-server-6
Matched from:



vsftpd-2.2.2-6.el6_2.1.x86_64 : Very Secure Ftp Daemon
Repo        : rhel-x86_64-server-6
Matched from:



vsftpd-2.2.2-6.el6_0.1.x86_64 : Very Secure Ftp Daemon
Repo        : rhel-x86_64-server-6
Matched from:



vsftpd-2.2.2-11.el6.x86_64 : Very Secure Ftp Daemon
Repo        : rhel-x86_64-server-6
Matched from:



1:telnet-server-0.17-47.el6_3.1.x86_64 : The server program for the Telnet
                                       : remote login protocol
Repo        : rhel-x86_64-server-6
Matched from:



1:telnet-server-0.17-47.el6.x86_64 : The server program for the Telnet remote
                                   : login protocol
Repo        : rhel-x86_64-server-6
Matched from:



1:telnet-server-0.17-46.el6.x86_64 : The server program for the Telnet remote
                                   : login protocol
Repo        : rhel-x86_64-server-6
Matched from:



2:xinetd-2.3.14-31.el6.x86_64 : A secure replacement for inetd
Repo        : rhel-x86_64-server-6
Matched from:



2:xinetd-2.3.14-34.el6.x86_64 : A secure replacement for inetd
Repo        : rhel-x86_64-server-6
Matched from:



2:xinetd-2.3.14-29.el6.x86_64 : A secure replacement for inetd
Repo        : rhel-x86_64-server-6
Matched from:



2:xinetd-2.3.14-35.el6_3.x86_64 : A secure replacement for inetd
Repo        : rhel-x86_64-server-6
Matched from:



2:xinetd-2.3.14-33.el6.x86_64 : A secure replacement for inetd
Repo        : rhel-x86_64-server-6
Matched from:



vsftpd-2.2.2-11.el6.x86_64 : Very Secure Ftp Daemon
Repo        : installed
Matched from:
Other       : Provides-match: vsftpd


We will have 'fun' no doubt. Am I right in my reading that csftp is on port 21 therefore will accept plain old FTP?


Thanks again,
Robin

---------- Post updated at 03:39 PM ---------- Previous update was at 12:56 PM ----------

YES!

Sponsored Links
    #5  
Old 12-07-2012
admin_xor's Avatar
admin_xor admin_xor is offline
Registered User
 
Join Date: Jun 2011
Last Activity: 8 April 2014, 5:55 AM EDT
Posts: 452
Thanks: 13
Thanked 79 Times in 76 Posts
Quote:
Am I right in my reading that csftp is on port 21 therefore will accept plain old FTP?
Yes, vsftpd works on the same old ftp protocol and supports both active and passive modes. But, it's really tightly secured. That's why the name "Very Secure FTP daemon"
The Following User Says Thank You to admin_xor For This Useful Post:
rbatte1 (12-10-2012)
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
cfengine / puppet for rhel servers jaysunn Red Hat 1 06-21-2010 03:14 AM
RHEL 4, simltaneous maximum ftp/telnet sessions allowed newbie07 UNIX for Advanced & Expert Users 2 01-14-2008 07:48 AM
RHEL 4, simltaneous maximum ftp/telnet sessions allowed newbie07 Red Hat 2 01-14-2008 05:03 AM
telnet & ftp in linux AS4 with root account bong02 Red Hat 3 07-20-2006 08:53 AM
diable telnet & ftp pradeep_desh UNIX for Advanced & Expert Users 1 06-05-2006 01:14 PM



All times are GMT -4. The time now is 11:50 AM.