mediation
Technical User
- Nov 11, 2006
- 17
Dears,
When i use the following script to connect to another server using SSH i got the output below .. please advise how to resolve this problem ??
#!/bin/ksh
{
sleep 1
echo "password\r"
sleep 1
echo "commands\r"
sleep 1
echo "exit\r"
sleep 5
}|ssh -l username ip.address
Output:
========
Pseudo-terminal will not be allocated because stdin is not a terminal.
usename@xxx.xxx.xxx.xxx's password:
and it is waiting to insert the password although it is written in the script.
Thanks in advance for your quick reply.
When i use the following script to connect to another server using SSH i got the output below .. please advise how to resolve this problem ??
#!/bin/ksh
{
sleep 1
echo "password\r"
sleep 1
echo "commands\r"
sleep 1
echo "exit\r"
sleep 5
}|ssh -l username ip.address
Output:
========
Pseudo-terminal will not be allocated because stdin is not a terminal.
usename@xxx.xxx.xxx.xxx's password:
and it is waiting to insert the password although it is written in the script.
Thanks in advance for your quick reply.