Member-only story
How to Receive Large Files Using mkfifo and scp and Add id_rsa.pub to Authorized Keys
In today’s world, exchanging large files has become a common task. However, transferring large files securely can be a challenge, especially when dealing with sensitive data. In this blog, we will discuss how to receive large files using mkfifo
and scp
, and how to add id_rsa.pub
to authorized keys for secure authentication.
Introduction to mkfifo and scp
mkfifo
is a command used to create a named pipe, which is a type of file that allows two processes to communicate with each other by sending data through the pipe. It is a powerful tool that can be used to transfer large files between two systems without creating a temporary file on the sender's or receiver's system.
scp
is a command-line utility that allows secure copying of files between remote and local systems. It uses the SSH protocol to encrypt data during transmission, making it a secure method for transferring files over a network.
Receiving large files using mkfifo and scp
To receive large files using mkfifo
and scp
, you need to follow these steps:
- Create a named pipe using the
mkfifo
command. For example, if you want to receive a file namedlarge_file.tar.gz
, you can create a named pipe calledpipe
in the/tmp
directory using the following command:
mkfifo /tmp/pipe