Operating System - Tru64 Unix
1828825 Members
2968 Online
109985 Solutions
New Discussion

Re: SSH command line not Menu

 
Jefferson_6
Frequent Advisor

SSH command line not Menu

Hi guys,
Ive successfuly login to my server using ssh.My problem is the output is a Menu driven.How can i change it to a command line ?
13 REPLIES 13
Ivan Ferreira
Honored Contributor

Re: SSH command line not Menu

What do you mean with:

"Output is a Menu driven?"

What menu do you get?. Maybe you are starting an application from the .profile, when you logon using ssh, you should end at the OS prompt.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Jefferson_6
Frequent Advisor

Re: SSH command line not Menu

Hi,
Heres the login menu.How can i edit my .profile so that i will go directly to os prompt ?
===================================
Open Source Internet Solutions Menu
===================================
1) Mail
2) News Reader
3) WWW Line Mode Browser
4) Change Password
5) Read User Guide
6) Quit

Enter number of choice and press :

Kasper Hedensted
Trusted Contributor

Re: SSH command line not Menu

Hi,

This is an Internet Express captive account and you cannot access the shell.

Take a look at chapter 3 in this doc:
http://h30097.www3.hp.com/docs/iass/OSIS_64/admin/admingde.pdf

Cheers,
Kasper
Jefferson_6
Frequent Advisor

Re: SSH command line not Menu

Yes Internet Express captive account users cannot access the Tru64 UNIX shell.How can i add users then that access the cli? so that whenever i ssh to my server it goes directly to the cli.
Ann Majeske
Honored Contributor

Re: SSH command line not Menu

Have you tried using the standard Tru64 UNIX tools for adding users, i.e. useradd or dxaccounts?
Jefferson_6
Frequent Advisor

Re: SSH command line not Menu

Hi Anne,
Yes i tried that already. After creating the user, after supplying the password, authentication was successful then the connection is closed. A message saying Contact your Administrator. what seems to be the problem ? my login shell is /bin/sh
Kasper Hedensted
Trusted Contributor

Re: SSH command line not Menu

Your account is probably locked.

Unlock it with dxaccounts or "usermod -x administrative_lock_applied=0 username"
Jefferson_6
Frequent Advisor

Re: SSH command line not Menu

It worked, i just removed the lock.Thanks a lot.My problem is when i login as a user, i cant change to the root user.What configuration would i do here?
Kasper Hedensted
Trusted Contributor

Re: SSH command line not Menu

Your user needs to be in the system group.
Use dxaccounts or "usermod -G system username" (or edit /etc/group manually)
Jefferson_6
Frequent Advisor

Re: SSH command line not Menu

Thanks.i can now change to the root. My final concern is how to secure my ssh. Can you give some tips on the configuration ?tia
Al Licause
Trusted Contributor

Re: SSH command line not Menu

If you have privelage to do so, you can simply su and type in the root password or you logout and back in again as root assuming root logins are not disabled.

RE: securing ssh....just what is it you're trying to do ? Are you trying to prevent certain people from login ? Do you want to use different access methods ? Please provide more detail as to the type of environment you are trying to create.....
Jefferson_6
Frequent Advisor

Re: SSH command line not Menu

my concern at first is to limit the number of ip address accessing. second is maybe what kind of accessing is secure? right now im using on the password.thanks for all the help
Al Licause
Trusted Contributor

Re: SSH command line not Menu

If you're trying to limit the number of concurrent users, you could limit the number of psuedo devices on the system (/dev/pts.....).

You could also use ifaccess filters to limit from where they can ssh, but this will be an all or nothing block....not just ssh.

As to what is secure, that's really something you have to define. The relative security of a system is determined by the site. The more secure your site, the more you need to do to ensure that the system is secure.