If in Window, we know such things like “Remote Desktop Connection”, now in linux we have the almost-same things.
That is ‘ssh’
If you want to connect to your friend computer remotely, just say that your friend ask for your help to solve the problem on their computer, you can just do it like this
Set SSH to Remote Computer
sudo ssh username@IpAddress

Accept Finger Print
Type ‘yes’ to accept FingerPrint

Insert Remote Computer Password
Insert Remote Computer Password (Remember, it’s not your password but your friend’s password, make sure you’ve known the password first)
Congratulation, now you have succeed to login into your remote computer terminal, you can do everything including shutdown computer and any other things
.
But I take no responsibilities if you do something bad..
If you have done with it, just type ‘exit’ to end the connection..