SSH enable, Telnet disable ...


 
Thread Tools Search this Thread
Operating Systems Solaris SSH enable, Telnet disable ...
# 8  
Old 03-02-2007
You can stop telnet while the server's running.

1. Edit /etc/inetd.conf (vi /etc/inetd.conf)

2. Find the entry for telnet (/telnet[enter])

If there's a "#" in front of the entry then you're done. Otherwise continue:

3 Put put a hash mark in front of the line (i#[esc])

4. Save the file (:wq!)

5. Restart the inetd process (kill -HUP `ps -e | grep inet | awk '{print $1}'`) (the ones around the whole statemet after HUP are reverse ticks, the lower key where tilde (~) is on your PC keyboard. The ones in the awk section are single quotes.)

6. Test the connection (telnet localhost)

7. Profit!

Carl
# 9  
Old 03-02-2007
disable telnet

thank you BOFH

before I exercise your command the un-commented line is
Telnet streams tcp6 nowait root /usr/sbin/in.telnetd %A in.telnetd
is this the line to comment out.

also when I did your inital entry to view the file it will not allow me to perform the edit.

Thanks
# 10  
Old 03-02-2007
Quote:
Originally Posted by panzerkw
thank you BOFH

before I exercise your command the un-commented line is
Telnet streams tcp6 nowait root /usr/sbin/in.telnetd %A in.telnetd
is this the line to comment out.

also when I did your inital entry to view the file it will not allow me to perform the edit.

Thanks
That is the correct line to be commented out. You do need to be root in order to edit the file and to restart inetd.

Carl
# 11  
Old 03-02-2007
telnet disable

BOFH, thank you

I am in as root. at the end of the file there are ~ lines down the left edge of the file. and i cannot make an entry,

any ideas

Thank you
# 12  
Old 03-02-2007
Quote:
Originally Posted by panzerkw
BOFH, thank you

I am in as root. at the end of the file there are ~ lines down the left edge of the file. and i cannot make an entry,

any ideas

Thank you
The tilde's are fine. It just means you're at the end of the file. Find the telnet line ('/' to begin search and 'telnet' for what to search for. hit enter to jump to the line) and press the letter 'i' which means "insert". Then hit the hash key (#). That will insert the # in front of the telnet line. Hit escape to return to command mode. Then hit colon ":" and type wq! (which means "write, quit, force"). That will return you to your prompt.

Carl
# 13  
Old 03-02-2007
A little hitch in the database. Posting this so you know there was a reply Smilie

Carl
# 14  
Old 03-02-2007
disable telnet

Thank you BOFH
I performed your command and it all seemed to work

Afeter i did the kill -HUP `ps -e | grep inet | awk '{print $1}'` the prompt went back to > . is that the end of the process.

I exited out of the xterm screen and went back in and executed the vi command to see if the line was commented out and indeed it was.

If indeed this is the completion of the process, I greatly appreciate your kind help.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Infrastructure Monitoring

OID to disable/enable printing

Hi @ all, we are a non-profit educational organisation. Now my company wants to disable printers, when a room is not used. I do a lot monitoring, using snmp. So I had the idea of disabling and enabling the printers by using snmp. After searching for hours, I only found some status-objects (ro)... (1 Reply)
Discussion started by: karls0
1 Replies

2. HP-UX

FTP service Enable/Disable

hi everybody, I can easily enable /disable the FTP service from SAM, how can I do this via command line? using inetd? how? cheers, messi (1 Reply)
Discussion started by: messi777
1 Replies

3. UNIX for Dummies Questions & Answers

Enable and disable the auto mount

How to enable and disable the auto mount option for USB devices.? (3 Replies)
Discussion started by: ungalnanban
3 Replies

4. UNIX for Dummies Questions & Answers

crontab: disable/enable

since i don't have root access, i have been doing: crontab -l > /tmp/username.crontab crontab -r vi /tmp/username.crontab and copy page crontab -e, and paste sometimes, /tmp/username.crontab has more than 1 page, so i have to copy twice. how do i copy all contents from... (2 Replies)
Discussion started by: tjmannonline
2 Replies

5. Shell Programming and Scripting

How to disable Enable/Disable Tab Key

Hi All, I have bash script, so what is sintax script in bash for Enable and Disable Tab Key. Thanks for your help.:( Thanks, Rico (1 Reply)
Discussion started by: carnegiex
1 Replies

6. Cybersecurity

How to disable RIP and enable EGP

Hello, We recently had a Nessus scan done of our system and the solution to one of the findings was this: disable the RIP agent and use an EGP routing protocol I have been unable to find any specific instruction on how to do either. We are running Solaris 8. Any help would be greatly... (3 Replies)
Discussion started by: stringman
3 Replies

7. Shell Programming and Scripting

Enable & disable cronjob

Hi All, I am new to cronjob and need some guidance on this. 1) How do i enable a cronjob ? Can it be done by "crontab mycronfile" or "crontab -e mycronfile" 2) How can i disable the cronjob? Can deleting of the "mycronfile" disable the cron or do i need to perform "crontab -r mycronfile"... (7 Replies)
Discussion started by: Raynon
7 Replies

8. UNIX for Advanced & Expert Users

Disable and Enable Backspace or Ctrl^H in vi

Could anybody tell me how I can disable or enable the backspace key in vi editor. I would like to feel the essence of the commands of vi editor but as I have the latest version and it is supporting the backspace key. I do it on promp using the command stty erase - This command stops the... (5 Replies)
Discussion started by: mobile01
5 Replies

9. Solaris

Enable/Disable rlogin and rcopy

How can i disable rlogin or rcopy from being running as a services in my system ? is there a way ? and is it gonna affect other remote services like ssh and telnet ? (3 Replies)
Discussion started by: XP_2600
3 Replies

10. Linux

Enable and disable ttyS0

I have a modem connect it to ttyS0 , in unix sco i know i can disable and enable the port , how can i do this , is there a command that will allow me to do this. **** I'm running Redhat 9 *****External Usrobotics 56k Thanks a lot guys (1 Reply)
Discussion started by: josramon
1 Replies
Login or Register to Ask a Question