For Programmers: Free Programming Magazines  


Home > Archive > PERL Beginners > August 2004 > Question on "ssh" login









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Question on "ssh" login
sunil

2004-08-23, 3:56 pm

Gentle People,

I want to use ssh to login. I want to hard code the password. I tried
to use following line

system ("ssh user@hostname <<INPW
password_goes_here
INPW
");

I get following error message.
Pseudo-terminal will not be allocated because stdin is not a terminal.
And program will ask to type password manually.

Any help will be greatly appreciated.
Regards
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com