So i'm trying to automate input for SSH. I know I could do it with expect, or by havint authrized_key on all the machines, but I want to do it in another way if possible.
I'm trying to basicly do this:
ssh root\@$machine > file
but i'm getting this error:
'Pseudo-terminal will not be because stdin is not a terminal'
I think this means, that ssh only accepts input from a 'terminal'
is there any way around this?
thank you
-ddanj
I'm trying to basicly do this:
ssh root\@$machine > file
but i'm getting this error:
'Pseudo-terminal will not be because stdin is not a terminal'
I think this means, that ssh only accepts input from a 'terminal'
is there any way around this?
thank you
-ddanj