System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

Can't telnet or FTP to an Oracle Enterprise Linux 5 server

SOLVED
Go to solution
Jan Shu
Regular Advisor

Can't telnet or FTP to an Oracle Enterprise Linux 5 server

Hi All,

I just installed a new Oracle Enterprise Linux 5 server njlxdv22 which is able to telnet to other HPUX servers. But when I try to telnet or FTP to njlxdv22 from my laptop, I got below error messages. How to fix this?

H:\>telnet njlxdv22
Connecting To njlxdv22...Could not open connection to the host, on port 23: Conn
ect failed

H:\>ftp njlxdv22
> ftp: connect :Unknown error number
ftp>

Regards,
Jan Shu
6 REPLIES
Paul Sperry
Honored Contributor
Solution

Re: Can't telnet or FTP to an Oracle Enterprise Linux 5 server

Jan Shu
Regular Advisor

Re: Can't telnet or FTP to an Oracle Enterprise Linux 5 server

Hi Paul,

I will read the link you sent and let you know if it works for my Oracle Ent Linux 5 server. Please wait. Thanks.

Jan
Paul Sperry
Honored Contributor

Re: Can't telnet or FTP to an Oracle Enterprise Linux 5 server

Jan Shu
Regular Advisor

Re: Can't telnet or FTP to an Oracle Enterprise Linux 5 server

Hi Paul,

I just downloaded putty and install it from http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html and now I can connect to this Linux server using ssh.

Jan
Paul Sperry
Honored Contributor

Re: Can't telnet or FTP to an Oracle Enterprise Linux 5 server

If all you need is access the the system then secure shell on port 22 (which putty uses) is fine. But if you need telnet which uses port 23, you will need to install it.

As for your ftp problem. Check that it installed and running as well.

ps -ef | grep ftp

should show something like

/usr/sbin/vsftpd /etc/vsftpd/vsftp.conf


Other wise follow these steps:
1. Install the vsftp rpm. rpm -ihv vsftp*.rpm.

/etc/xinetd.d/vsftpd. Should look like this:

service ftp
{
disable = no
socket_type = stream
wait = no
user = root
server = /usr/sbin/vsftpd
server_args = /etc/vsftpd/vsftpd.conf
nice = 10
per_source = 5
instances = 50
log_on_success += PID HOST DURATION
log_on_failure += HOST
}

3. Add "vsftpd: ALL" to /etc/hosts.allow. Replace "ALL" with your subnet, machine list, or whatever if you don't want everyone to be able to connect. ALL will let every machine connect, but you still need a login and password.

4. Create an /etc/vsftpd/vsftpd.conf file like this:

anonymous_enable=YES
local_enable=YES
write_enable=YES
local_umask=022
dirmessage_enable=YES
xferlog_enable=YES
connect_from_port_20=YES
xferlog_std_format=YES
pam_service_name=vsftpd
userlist_enable=YES
listen=NO
tcp_wrappers=YES

5. (optional) - If you want to ftp as root or any other user that is normally restricted, remove them from /etc/vsftpd.ftpusers.


6. (optional) - Do the same for /etc/vsftpd.user_list.

7. Type 'service xinetd restart' and you should be set.













Jeeshan
Honored Contributor

Re: Can't telnet or FTP to an Oracle Enterprise Linux 5 server

Hi

You cannot telnet the system unless you open the telnet port.
check /etc/xinetd.d/telnetd or /etc/sysconfig folders for telnet service.
or chkconfig telnet

for enabling FTP, you must start the vsftpd daemon.

you can restrict to ftp login in two files,

/etc/vsftpdusers and /etc/ftp_users file.

a warrior never quits