Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Stop telnet connects and allow ssh

Status
Not open for further replies.

chali2na

IS-IT--Management
Aug 22, 2002
2
US
As part of a new security implementation, Adminstrators can only connect to servers using ssh, not telnet. Is there a way to prevent individual users from using telnet and allow them to use ssh? We cannot turn off telnet, because we do have non-administrator users that need telnet.
 
hi ,

Firstly why can't the no admin guys use ssh ? its just a way of connecting to the server securely.

You have to make sure if you have any firewalls in place they allow port 22 (ssh) through from the server and install ssh on the server and start it up

secondly you edit /etc/inetd.conf file and comment out telnet and refresh inetd.conf

try telnetting you'll be refused ?

From PC what ever emulation s/w you use set it up so that your session uses ssh and not telnet , if your emulation s/w does not support ssh you can download putty which is free


If you desperately need telnet , then all you need to do is install ssh and one way to stop other users telnetting to the server is in the users profile check if they have telnetted ( uses something like lsof / ps -ft (tty) ) and if they are then print message "please you ssh" and exit

For the users who can use telnet then leave ther profiles as they are

hope this gives you some / bit more info
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top