Skip to main content
fixed order, added note regarding authentication
Source Link
Hermann
  • 7k
  • 2
  • 19
  • 36

@muru's comment is very valid, but for the sake of academical purpose:

Computer A:

cat source | ssh user@ComputerB 'cat > destination' user@ComputerB

(Assumes password-less authentication by public key.)

@muru's comment is very valid, but for the sake of academical purpose:

Computer A:

cat source | ssh 'cat > destination' user@ComputerB

@muru's comment is very valid, but for the sake of academical purpose:

Computer A:

cat source | ssh user@ComputerB 'cat > destination'

(Assumes password-less authentication by public key.)

Source Link
Hermann
  • 7k
  • 2
  • 19
  • 36

@muru's comment is very valid, but for the sake of academical purpose:

Computer A:

cat source | ssh 'cat > destination' user@ComputerB