Operating System - HP-UX
1753416 Members
5044 Online
108793 Solutions
New Discussion

remote login in unix server

 
rajesh73
Super Advisor

remote login in unix server

i want to login ssh to another server with login details

 

$more login

ssh 15.62.25.26

rajesh ------user name

Success345 -----------password

 

i try to run this script , it asking password again. how to read the password while running this script

1 REPLY 1
Dennis Handly
Acclaimed Contributor

Re: remote login in Unix server

You probably have to use expect to script the password prompt with ssh.

Any reason you don't use passwordless ssh, where the private key doesn't have a passphrase?