This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes Linux / UNIX and the fly likes ssh from script Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Engineering » Linux / UNIX
Bookmark "ssh from script" Watch "ssh from script" New topic

ssh from script

Satish Kulkarni
Ranch Hand

Joined: Jul 19, 2003
Posts: 60
I am writing a simple script to ssh to a another machine and execute some command


ssh -l <hostip> << EOF

but when I execute the script I am getting the following message

"Pseudo-terminal will not be allocated because stdin is not a terminal." an d I am asked to enter the password on the prompt..

Any idea how this could be resovled.

Stefan Wagner
Ranch Hand

Joined: Jun 02, 2003
Posts: 1923

My manpage tells me lot of possibilities to handle login via /etc/hosts.equiv, ~/.shosts, /etc/ssh/... or other config-files.

(none of them seems to work for me )
GeeCON Prague 2014
subject: ssh from script