Skip to main content
deleted 15 characters in body
Source Link
Jakuje
  • 21.8k
  • 7
  • 56
  • 74

I want to connect from ServerA to ServerB , and check Oracle Database Status and PendingLogs then record results, and use the result on ServerA ,and compare with the result on serverA and generate logs on serverA.

I used ssh -q [email protected] sh -s < /root/script.sh > /root/output.txt

but I still have to enter password manually.

1- is there any way to turn off interactive login?

2- how can I run script file via spawn ssh ?

  1. is there any way to turn off interactive login?

  2. how can I run script file via spawn ssh?

I want to connect from ServerA to ServerB , and check Oracle Database Status and PendingLogs then record results, and use the result on ServerA ,and compare with the result on serverA and generate logs on serverA.

I used ssh -q [email protected] sh -s < /root/script.sh > /root/output.txt

but I still have to enter password manually.

1- is there any way to turn off interactive login?

2- how can I run script file via spawn ssh ?

I want to connect from ServerA to ServerB , and check Oracle Database Status and PendingLogs then record results, and use the result on ServerA ,and compare with the result on serverA and generate logs on serverA.

I used ssh -q [email protected] sh -s < /root/script.sh > /root/output.txt

but I still have to enter password manually.

  1. is there any way to turn off interactive login?

  2. how can I run script file via spawn ssh?

Source Link
Reza
  • 13
  • 3

run script remotely and use result locally with ssh auto login

I want to connect from ServerA to ServerB , and check Oracle Database Status and PendingLogs then record results, and use the result on ServerA ,and compare with the result on serverA and generate logs on serverA.

I used ssh -q [email protected] sh -s < /root/script.sh > /root/output.txt

but I still have to enter password manually.

1- is there any way to turn off interactive login?

2- how can I run script file via spawn ssh ?