Skip to main content
Question Protected by slm
Tweeted twitter.com/#!/StackUnix/status/232025760846725120
edited tags
Link
Gilles 'SO- stop being evil'
  • 865.3k
  • 205
  • 1.8k
  • 2.3k
Source Link
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