Simpler Navigation coming for Servers and Operating Systems
Coming soon: a much simpler Servers and Operating Systems section of the Community. We will combine many of the older boards, and you won't have to click through so many levels to get at the information you need. If you are looking for an older board and do not find it, check the consolidated boards, as the posts are still there.
Showing results for 
Search instead for 
Did you mean: 

ssh secure setup help needed

Roger Lawhorn
Occasional Visitor

ssh secure setup help needed

I wish to achieve the following:

Telnet root login = blocked
Telnet user login = allowed
SCP/SSH root login with password = blocked
SCP/SSH root login passwordless = allowed

Which files and what settings do I use?
Steven E. Protter
Exalted Contributor

Re: ssh secure setup help needed


Definitely will solve the second part.

I would solve the first part by disabling telnet in inetd.conf

There really is not a need for telnet any more.

Steven E Protter
Owner of ISN Corporation
Kenan Erdey
Honored Contributor

Re: ssh secure setup help needed


sometimes because of some applications telnet is still needed. you can achive first part create a file /etc/securetty and write console. this will allow root login only from console.

# echo console > /etc/securetty

Computers have lots of memory but no imagination
Roger Lawhorn
Occasional Visitor

Re: ssh secure setup help needed

Thanks to both of you.
I think I have the answers I needed.
I am going ahead with the change.