- Key generate
ssh marcus@yourserver.url -p 2222
ssh-keygen -t rsa -C EMAIL
ssh-keygen -t rsa -f CUSTOM_FILE_NAME
ssh-keygen -p
# Then it will ask for the existing key path, old pass, and new pass
~/.ssh/authorized_keys
is created to add a public file~/.ssh/config
to create shortcuts likessh SHORTCUT-NAME
.
Host example
HostName 0.0.0.0
port 22
User name
IdentityFile ~/.ssh/id_rsa