Operating System - HP-UX
1753546 Members
5756 Online
108795 Solutions
New Discussion юеВ

ssh on HP-UX 11.00: I need interactive login

 
SOLVED
Go to solution
Joseph_56
Advisor

ssh on HP-UX 11.00: I need interactive login

Hello,

I just installed ssh on my HP-UX.

When I try connect from my HP-UX to host1,
ssh fetch my HPUX username, put it as login name to host1, and waits for password. But my HPUX username have any priveledges on host1, and I need to specify another login name.

To put simply,
I need, that ssh promts for login name, and after that, promts for passwd.

Thanks, J

8 REPLIES 8
G. Vrijhoeven
Honored Contributor

Re: ssh on HP-UX 11.00: I need interactive login

Hi,

You can connect with ssh with any user you like. just:

ssh -l hostname

HTH,

Gideon
Vijaya Kumar_3
Respected Contributor

Re: ssh on HP-UX 11.00: I need interactive login

Hi

use this format

ssh remoteuser@remotehostorIP

for example,

to connect to a remote box 172.23.4.45 using ora1 user account, use:

ssh ora1@172.23.4.45

This will prompt for the password for the remote machine. Also you can use -u option

ssh -u ora1 172.23.4.45

Known is a drop, unknown is ocean - visit me at http://vijay.theunixplace.com
Vijaya Kumar_3
Respected Contributor

Re: ssh on HP-UX 11.00: I need interactive login

I am sorry, the option is -l, It is NOT -u

Syntax from ssh man page:

ssh [-l login_name] hostname | user@hostname [command]

Hope this helps.
Known is a drop, unknown is ocean - visit me at http://vijay.theunixplace.com
Joseph_56
Advisor

Re: ssh on HP-UX 11.00: I need interactive login

I look for something like that:

[comand line]$ ssh host1
[host replay]login as:
[host replay]password:

know I have

[comand line]$ ssh host1
[host replay]user@host1:
passwd incorrect
[host replay]user@host1:
passwd incorrect
[host replay]user@host1:
passwd incorrect
end.
Vijaya Kumar_3
Respected Contributor

Re: ssh on HP-UX 11.00: I need interactive login

You can write a wrapper script around ssh.


create a shell script "ssh-host" like this:


if [ $# -lt 1 ]
then
echo "Please enter host name"
fi

host=$1

echo "Enter user: "
read $user

echo "Enter Password: "
read $password

ssh -l $user $host




Known is a drop, unknown is ocean - visit me at http://vijay.theunixplace.com
Joseph_56
Advisor

Re: ssh on HP-UX 11.00: I need interactive login

Ok, thanks for script and idea.

I just cann't imagine, that ssh haven't feature like I look for.

/J
Tomek Gryszkiewicz
Trusted Contributor

Re: ssh on HP-UX 11.00: I need interactive login

That's because ssh is much similar to rsh, not telnet. If you are looking for secure replacement of telnet, try to start telnet over SSL.

-Tomek
Dmitry G. Spitsyn
Trusted Contributor
Solution

Re: ssh on HP-UX 11.00: I need interactive login

Hello,Joseph !

There are many configuration settings and several configuration files, both for the server and the client.
The sshd_config file is the one read and used by the ssh daemon on the server side.
The "#" sign means a comment in this file. Actually the lines that do start with a "#" represent the default setting for that parameter.
The ssh_config file is the default configuration file for the ssh client. The entries in this file are only used if they are not specified in either the user's own configuration file ($HOME/.ssh/config) or at the command line. The "#" sign is a comment in this file. The format of this file is the same as the sshd_config file.
Playing with the SSH configuration parameters you can get the ssh behavior required.
For example, try to change UseLogin parameter from no to yes on the ssh server.

BR,
Dmitry.