Send files over SSH

Moki Lv6

Send:

1
2
ssh user@host "cat > destination-file.txt" < input-file.txt
cat input-file.txt | ssh user@host "cat > destination-file.txt"

Receive:

1
ssh user@host "cat input-file.txt" > destination-file.txt
On this page
Send files over SSH