A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
video training course this week in the
Linux / UNIX
ssh from script
Joined: Jul 19, 2003
Aug 25, 2004 11:40:00
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.
Joined: Jun 02, 2003
Aug 25, 2004 21:27:00
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
I agree. Here's the link:
subject: ssh from script
Callling a Script from a java program
Java program sshing to Linux Server
Current directory not in path when logging via ssh
problem running SSH with JSP
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015