{ 4 comments… read them below or add one }

1 Sriram 09.07.06 at 5:35 am

When I try to Authenticate via SSH using a Script , I get

The script is the same :

Pseudo-terminal will not be allocated because stdin
is not a terminal.

I tried using -t and -T switch both on and off.

Suggest if you have any better Ideas

Many Thanks
Sriram

2 krishna kumar 03.28.07 at 6:20 am

i want to know whether i can login to a sever using SSH by hardcoding the user name and password in my unix script.

expecting your replay soon.

3 Nilesh 08.21.07 at 12:02 pm

Yes, you can login to server using SSH by hardcoding
. For this you have to use php.
Php provides expect module to ssh login.

4 ccb 03.28.09 at 1:40 am

@ krishna kumar
@ Nilesh

PHP isn’t necessary — you can generate public/private keys per user/host you wish to connect to and avoid passwords altogether, allowing you to fully automate your ssh connections.

Google ’ssh without password’ and you’ll find plenty of tutorials on this process.

Leave a Comment

You can use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Tagged as: , , , , , , , , , , , , ,

Previous post: Do I need antivirus software for linux?

Next post: Linux setup shared directory