SSH, also known as Secure Socket Shell, is a network protocol that provides administrators with a secure way to access a remote computer. SSH also refers to the suite of utilities that implement the protocol.
Installing SSH
sudo apt install openssh-client
sudo apt install openssh-server
Enablig SSH on a machine
sudo service ssh start
sudo service ssh restart
sudo service ssh stop
sduo service ssh status
Copy files using SSH
To copy a file from B to A while logged into B
scp /path/to/file username@a:/path/to/destination
To copy a file from A to B while logged into A
scp username@b:/path/to/file /path/to/destination
Misc
eval `ssh-agent -s`
Debugging ssh with GitHub’s help
ssh -vT git@github.com
Useful explanation on SSH for Windows and Putty
Remembering your SSH password
ssh-add #=> prompts for you password and then remembers it to reuse later
ssh-add ~/.ssh/id_rsa #=> adds a specific key to the list
ssh-add ~/.ssh/id_rsa_markpearl #=> adds a specific key to the list