Networking
cancel
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?
3 REPLIES
Steven E. Protter
Exalted Contributor

Re: ssh secure setup help needed

Shalom,

http://www.hpux.ws/?p=19

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.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Kenan Erdey
Honored Contributor

Re: ssh secure setup help needed

hi,

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.