SSH

Secure Shell is a cryptographic network protocol used for secure remote administration of systems over an unencrypted network. It provides encrypted communication between a client and a server, ensuring confidentiality, integrity, and authentication. SSH operates in the Application layer by default on port 22.

This protocol allows users to remotely execute commands on a server, secure file transfer, port forwarding, tunneling, and cryptographic authentication.

Interaction with the protocol

  • Install

sudo apt install openssh-client

  • Connect using the protocol

ssh $user@$IP
ssh $user@$IP -i $privatekey   #Connect with a private key
ssh $user@$IP -T               #Connect trying tunneling
scp $file $user@$IP:/tmp/$file #Use SSH for transferring files

Last updated