Skip to main content
replaced http://unix.stackexchange.com/ with https://unix.stackexchange.com/
Source Link

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

Yes, use public key authentication or sshpass to enter passwordsshpass to enter password.

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

Yes, use expect scriptexpect script. If you want to run some other script inside (awk), you need to escape the special characters (\$).

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

Yes, use public key authentication or sshpass to enter password.

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

Yes, use expect script. If you want to run some other script inside (awk), you need to escape the special characters (\$).

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

Yes, use public key authentication or sshpass to enter password.

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

Yes, use expect script. If you want to run some other script inside (awk), you need to escape the special characters (\$).

added 104 characters in body
Source Link
Jakuje
  • 21.8k
  • 7
  • 56
  • 74

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

Yes, use public key authentication or sshpass to enter password.

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

Yes, use expect script. If you want to run some other script inside (awk), you need to escape the special characters (\$).

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

Yes, use public key authentication or sshpass to enter password.

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

Yes, use expect script

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

Yes, use public key authentication or sshpass to enter password.

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

Yes, use expect script. If you want to run some other script inside (awk), you need to escape the special characters (\$).

Source Link
Jakuje
  • 21.8k
  • 7
  • 56
  • 74

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

Yes, use public key authentication or sshpass to enter password.

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

Yes, use expect script