cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Bookmark
|
Subscribe
|
584
Views
0
Helpful
3
Replies

how to use sh script to ssh login sup720

julxu
Level 1
Level 1

we configured our sup720 to use ssh only. no telnet.

that bring me a problem to write shell script to access sup720. the pseudo terminal not work anymore.

Cold I get advice that how can I write the script to access the box

Any comments will be appreciated

Thanks in advance

3 Replies 3

b-watkins
Level 1
Level 1

The best way I know to do this is to use an expect script. There are ways of creating a better pseudo-terminal under PERL that will work just fine with OpenSSH, but it doesn't work with the OpenSSH SCP client (but expect does).

Great thank for the reply.

Could you please advice me an expect script? and where I can find it? is it free to download?

Many regards

Hi,

You can find details of Expect scripting here

http://expect.nist.gov/

Also your can download the package for windows & Unix from the above mentioned url

Regards

SKJ