Lead Developer
@ceceppa
https://github.com/ceceppa
“Secure Socket Shell, is a network protocol that provides administrators with a secure way to access a remote computer.”
-- Wikipedia
same key
different keys
Ciphertext
A@3
CDI)"]'
XAS89
Generate key pair
Public key
Private key
You can share
MUST kept
secret
Ciphertext
A@3
CDI)"]'
XAS89
Private key
Public key
ssh
ssh-keygen -t rsa -b 4096 -C "your_email@example.com"
rsa
4096
Specifies the type of key to create.
Specifies the number of bits in the key to create
dsa,ecdsa,ed25519
also depends by the type of key
Generating public/private rsa key pair.
Enter file in which to save the key (~/.ssh/id_rsa):
Custom file name can be used for:
Enter passphrase (empty for no passphrase):
Generate key pair
Public key
Private key
You can share
MUST kept
secret
"ssh-agent is a program to hold private keys used for public key authentication."
-- Linux man page
Start the ssh-agent in the background
eval "$(ssh-agent -s)"
Add your SSH private key to the agent:
ssh-add ~/.ssh/id_rsa
ssh [username]@[domain/ip address]
asenese@93digital:~$
Terminal:
To connect:
Server A
Server B
Server A
Server B
“SSH agent forwarding can be used to make deploying to a server simple. It allows you to use your local SSH keys instead of leaving keys (without passphrases!) sitting on your server."
-- Github
Server A
Server B
ssh-agent
forward
ssh -a [...]
Host [host address]
ForwardAgent yes
Encryption and HUGE numbers
SSH by Michael W. Lucas
RSA algorithm
WordMove
How RSA works with example