General discussion

Locked

Fedora Core Linux

By trevorc1653 ·
I have Fedora Core Linux. I cannot telnet to this box. I have ensured that the Telnet daemon is running. I have ensured that the "disable" line, in the "telnet" file, that resides in the /etc/xinetd.d directory, has been set to "no".
Finally, I have ensured that no "iptables" rule is preventing the connection.

What else do I need to check in Fedora Core Linux so that I can telnet to it?

This conversation is currently closed to new comments.

1 total post (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

why telnet?

by LordInfidel In reply to Fedora Core Linux

and not ssh?

my opinion, remove the telnet package
and use ssh (not just disable it, rpm -e telnetd whatever the package name is...!!!!!)

much much much more secure....
do not permit root login... Follow example below:

!---Make sure you are on the console and not via ssh---!

/etc/ssh/sshd_config
Uncomment:
port 22
Listen Address 0.0.0.0
Permit Root login: NO
strictmodes yes
rhostsauth no
ignorerhosts yes
permit empty pass no
----
chown -R root:root /etc/ssh
chmod 755 /etc/ssh
chmod 600 /etc/ssh/ssh_host_key
chmod 644 /etc/ssh/ssh_host_key.pub
chmod 644 /etc/ssh/sshd_config
----
edit hosts.allow and hosts.deny

a. allow
1. sshd : ipsubnet/mask <space> ipsubnet/mask <space> ipsubnet/mask

b. deny
1. sshd : ALL : twist /bin/echo Go Away %c, You have been denied, logged and flogged.
----
add another user for wheel group:

adduser <username>
passwd <username>

vi /etc/group
add user to wheel group (group is under root)
<esc>:wq

!---Important, log out then log in as the new user, make sure you can su into root----!

vi /etc/pam.d/su
Uncomment out user must belong to wheel field
<esc>:wq

chgrp wheel /bin/su
chmod 4750 /bin/su

!--Log out, then ssh into the box, try to log in
as root, you should not be able to. Log in as the lower user then su to root---!

If that is sucessful then remove root logins to the tty's:

vi /etc/securetty
leave only console
<esc>:wq

Back to Security Forum
1 total post (Page 1 of 1)  

Related Discussions

Related Forums