Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 04-20-2009, 01:59 AM   #1
Registered: Feb 2008
Posts: 73

Rep: Reputation: 15
how to allow IPs for ssh in SunOS

hi ,

i am using SunOS 5.0 and i want to allow IPs for ssh. As i am new to this system i donn know allow ip.In Linux its hosts.allow and hosts.deny
but in SunOS i donn know so please help me.
Old 04-20-2009, 02:05 AM   #2
LQ Guru
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
You can do it that way in Linux, or you can use sshd_config. Is there an equivalent to the ssh config for SunOS?
Old 04-20-2009, 02:22 AM   #3
Registered: Feb 2008
Posts: 73

Original Poster
Rep: Reputation: 15
that i also dont'know for SunOS.
Old 04-20-2009, 03:11 AM   #4
Senior Member
Registered: Jun 2008
Location: Eelam
Distribution: Redhat, Solaris, Suse
Posts: 1,278

Rep: Reputation: 148Reputation: 148
if you want to ssh using root account just modify the entry in sshd_conf as this PermitRootLogin yes
Old 04-20-2009, 03:45 AM   #5
LQ Guru
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 677Reputation: 677Reputation: 677Reputation: 677Reputation: 677Reputation: 677
Check the manpages for ssh_config, sshd_config & ssh. If it uses the bsd ssh package, then you can use "AllowUsers" with entries like nirmit@hostname or nirmit@ All other entries are not allowed. This makes it easier to use AllowUsers, then to explicitly list all of the system users in DenyUsers.

Don't allow root logins unless absolutely necessary. Also consider using pubkey authentication instead of username/password. Be sure to select a long passphrase to protect your client's private key.

Many people will change the port number that ssh uses for hosts connected to the internet. This reduces the number of script kiddie brute force attacks. This may make things more secure by reducing the distractions, making more serious attacks stand out.

Also look if access control is done by PAM configuration files in /etc/security/. SUN invented PAM so they probably use it.

Last edited by jschiwal; 04-20-2009 at 03:56 AM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Permit SSH From Specific IPs carlosinfl Linux - Security 3 03-18-2009 02:07 PM
how to allow and deny ssh acces to certain IPs caedo Linux - Security 4 09-19-2008 12:47 PM
allow certain IPs to connect to ssh bytez Linux - Security 3 05-21-2007 10:15 AM
SSH tunneling with multiple IPs phoinix Linux - Networking 2 03-27-2007 02:09 PM
ssh using hostnames, not IPs shanenin Linux - Networking 3 04-11-2005 01:39 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:43 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration