cancel
Showing results for 
Search instead for 
Did you mean: 

no root access via telnet

dom kris
Frequent Advisor

no root access via telnet

Hi,

can I deactivate root access via telnet only?
I still want to be able to logon directly using SSH as root but via telnet.
Changing the entry in the /etc/securettys also blocks SSH root access (as it should oposed to Solaris).
We are using OpenSSH (not the SSH that comes with Tru64). This is a deliberate choice and cannot be changed.

Any help much appreciated

Kd
4 REPLIES
Mobeen_1
Esteemed Contributor

Re: no root access via telnet

Dom Kris,
Yes that can be done absolutely. Just go to the file /etc/telnet.conf and remove/comment the line containing root and you should be able to achieve what you are looking for,

regards
Mobeen
Eric van Dijken
Trusted Contributor

Re: no root access via telnet

Yes, you should be able to do this.

Normally the sshd_config file has an entry which is something like "PermitRootLogin No"

Change this to "Yes", restart the sshd daemon and you should be able to ssh as root.
Watch, Think and Tinker.
dom kris
Frequent Advisor

Re: no root access via telnet

"/etc/telnet.conf"? I don't have this file nor is mentioned in the man pages.
Can you give more info about this file or a pointer to where I can find this info
Mobeen_1
Esteemed Contributor

Re: no root access via telnet

Kd,
Sorry for any confusion. Try this mate and let me know if you were able to bar telnet logins from root. This by far is the easiest way

Just enter 'console' in /etc/securetty and root will not be able to telnet.

regards
Mobeen