1833875 Members
3300 Online
110063 Solutions
New Discussion

Re: problem of ssh

 
kacou
Regular Advisor

problem of ssh

On a solaris server I succeeded in removing a remote access ssh to a user using: “denyuser user in /etc/ssh_conf file”
Where can i make the same thing on HP-ux
6 REPLIES 6
Ivan Krastev
Honored Contributor

Re: problem of ssh

Use the same directives in /etc/opt/ssh/sshd_config

And after changer restart daemon:
/sbin/init.d/secsh stop
/sbin/init.d/secsh start

regards,
ivan
Steven Schweda
Honored Contributor

Re: problem of ssh

"man sshd" leads to "man sshd_config".
Reading can be fun and educational.
Doug O'Leary
Honored Contributor

Re: problem of ssh

Hey;

ps -ef | grep sshd

Find out where sshd is running from. Chances are, it's /opt/ssh/sbin. If that's the case, the ssh_config file will be under /opt/ssh/etc

Doug

------
Senior UNIX Admin
O'Leary Computers Inc
linkedin: http://www.linkedin.com/dkoleary
Resume: http://www.olearycomputers.com/resume.html
Rasheed Tamton
Honored Contributor

Re: problem of ssh

Hi,
Do not get confused about the path of the ssh config files.

Both Ivan and Doug are right, the dir for the config files are linked.

/etc/opt/ssh -> /opt/ssh/etc

man sshd_config (look for AllowUsers)

sshd_config - server system-wide configuration
ssh_config - client system-wide configuration file
kacou
Regular Advisor

Re: problem of ssh

is it possible to have the same service with telnet?
Tim Nelson
Honored Contributor

Re: problem of ssh

For telnet, here are some options:

1) remove the user from the system
2) change the shell for the user to /usr/bin/false
3) hang a sign on the system that says user xyz is not allowed ;)