Skip to main content
1 of 2
Web-E
  • 635
  • 2
  • 6
  • 6

ssh input from text file

These two question is driving me crazy and I don't have good expertise of ssh. (but I suspect it is to do with redirection only)

The questions are,

You want to pass multiple lines of input from a file called abc.txt to the ssh command. Complete the command required to do this

$ssh _ _ abc.txt (that is only two characters) (a details explanation would be helpful)

AND

You want to pass multiple lines of input from a file called Remote.txt to ssh but all leading tabs in the subsequent input should be stripped. Complete the command to do this

$ssh _ _ _ Remote.txt

Web-E
  • 635
  • 2
  • 6
  • 6