have been trying to do something like cat file | awk '{print $2}' | xargs ssh and it's possible to login (prompted for a password but displayed Pseudo-terminal will not be allocated because stdin is not a terminal.). if I pass the -tt argument to ssh it will give me a shell but it's just froze (unable to write anything to the shell). my questing is simply if it's possible to pass arguments to ssh using xargs or pipe? (such that ssh's stdin or argument is stdout of another command NOT the shell)?
I know it's possible to do something like ssh `cat somefile` assuming that somefile contains something like username@server, at the first line.