Hello, and this lesson, we are going to cover SICP, which is secure copy protocol now the Secure
Copy Protocol, or ACP, helps to transfer computer files securely from a local host to a remote host.
It is somewhat similar to FTP, but it adds security and authentication.
So if you are transferring a file again from server A to server B, you could use SICP as the protocol
of the command rather than FTP.
And the reason it is preferred is because it is secure.
It adds more security and authentication.
Now the protocol, as I said before, the protocol is a set of rules used by computers to communicate
so and ACP was built.
They decided, OK, this is the protocol that SICP should use and this is the port that should be used
to transfer a file from one server to another.
The default SICP port is S.H. or Port 22, so there is no different protocol that was established or
set up for ACP.
So it actually leverages on to the same SSA protocol that we use to connect from one server to another
or S.H..
Now for this lecture again, we needed to Linux machines.
One is for the Cleide and one is for the server.
The client is where we have the file and the server is where we want to transfer that file to for the
client.
I have my Linux machine and it is called my first Linux VM for the server.
I have a server, which is exactly the same as client as well, but I named it Linux S.O.S seven.
So the process is FCP.
The process in the graphical way is you have a client, A and B server.
Now Client A wants to copy a file over to server B now it will use the protocol SICP or the command
ACP, but it actually transferred that over through the protocol we already have in place and that is
SASE.
So there is no new protocol for that.
It actually piggyback on S.H. And of course the SSD port is 22 and the servers for SSA Deman should
be running on the recipient or the remote server in order to accept any incoming incoming traffic.
Okay, what's the process?
The S.P. command to transfer files to the remote server.
First of all, you have to log in yourself, then create a file.
Any file, let's say, in this in this lesson or in this Laville create a file called Jack.
Once the Jack File is created, then we will simply run the command SICP, the file name Jack.
I have Zoll is a user name that actually exists on their remote server at one I to 161 dot X is the
the actual IP of the remote server.
Of course we replace that X with the digit that is the digit of your remote server and the last part
is calling the slash home.
Zakayev.
So this is where you want the file to go to in this directory on the remote server.
Once it's connected then it's going to ask you to enter username and password and it will transfer the
file successfully.
Now, enough is enough.
Let's actually start our Linux machine, which I have already started and I have already logged in through
my PUDI.
This is my Linux machine and I referred to as my client machine because this is the one that connects
to the server and this machine Hostname is my first Linux VM who is logged in.
Who am I?
I'm logged in as myself.
I followed the directions here.
I'm going to create a file called Jack in my home directory in my home directory slash home slash.
I have salt.
I'll go ahead and do touch Jack and I do X minus l tr you will see I have a file called Jack.
It has zero bytes now.
I want to transfer that, but before I translate, put something in there just to make sure it is transferred
with the right content.
So let's do V.I. on Jack and just put Jack.
As Jeri's.
My uncle.
That's it.
Dweller's mysel, Teyana, you see, it has total by 22 perfect.
Now we need to transfer this file to our remote server, but before we transfer that file to the remote.
So we wanted to know what is the IP address of their remote server.
So I'm going to go into my remote server, which I also have it opened and I'm going to do if config
ENP zero is three, because that's the interface where the IP is assigned and the IP is one eight to
one 68, one dot fifty eight.
Beautiful.
Let's go back to my client and now this time I'm going to run the command.
That's clear the screen so you could see it better now run the command SICP, the name of the file which
is Jack, the name of the user who is going to log in to the remote server.
What is a remote server?
192 to 168.
One dot.
Fifty eight.
Yes.
And then colon slash.
Where is it going to which directory.
It's going to homeschool hit enter and it's going to ask you for the password.
If you are doing SICP for the first time then it's going to ask you for the fingerprints where you have
to type in.
Yes.
And then enter the password.
So go ahead and password.
And it says a jack, which is a file name, 100 percent fast for transferred and the size was twenty
two and this is the time it took to transfer.
OK, I got this message on the line, but let's confirm on the server whether it was transferred or
not.
So first of all, it was transferred as I have Zolt so I have to log in.
I was all so who am I.
I am.
I have so beautiful.
Now which directory am I logged into?
I am in my home directory because that's where I transferred the file.
Right now I will do this minus LTA to check if that Jack File came in.
It dead.
Perfect.
Now is this the right file that came in last catted.
We did the cat, Jack, is Gerry's uncle perfect?
This is how the SICP works and you could also do the same thing, by the way, SICP to go into this,
a remote server.
If you wanted to pull something out of that server from server to the client and you just have to reverse
the command anyway, try it out.
And these are the couple of commands, a few commands that I wanted to cover and very important commands
when you are dealing with transferring files from one server to another.