1833756 Members
2977 Online
110063 Solutions
New Discussion

ssh

 
Sudhir_8
Contributor

ssh

Hi,
Do we have any file on HP-UX to restrict ssh logins from specific IP's like we have /var/adm/inetd.sec file for telnet & ftp.

Also I want to know how to enable ssh on linux server. SSH is already installed on linux server
4 REPLIES 4
Keith Bryson
Honored Contributor

Re: ssh

Hi there

Take a look at:

/etc/ssh/sshd_config
or
/etc/ssh2/sshd2_config

there is the following line within this configuration file:

AllowHosts 10.*, 193.128.202.*

(you can specify your required IPs here).

I'll try and get back to you on the Linux question....

Keith
Arse-cover at all costs
Keith Bryson
Honored Contributor

Re: ssh

Check for the existence of /etc/init.d/sshd on the Linux server. I know this isn't a Linux forum, but if you run

/etc/init.d/sshd start

do you see the process running when you do

ps -ef | grep ssh

If so, you will only need to change configuration (if required) in the /etc/ssh directory and add a start link in /etc/rc3.d (for example):

ln -s /etc/init.d/sshd /etc/rc3.d/S999ssh

Keith
Arse-cover at all costs
Gordon  Morrison
Trusted Contributor

Re: ssh

On HP-UX, the default location of sshd_config is /opt/ssh/etc/sshd_config
What does this button do?
Armin Kunaschik
Esteemed Contributor

Re: ssh

If you install the HP package of Openssh,
you get TCP Wrapper functionality.
See the sshd man page:

/etc/hosts.allow, /etc/hosts.deny
Access controls that should be enforced by tcp-wrappers are
defined here. Further details are described in hosts_access(5).

Hope this helps.
Armin

PS: Please assign points for answers!
And now for something completely different...