Skip to content

Instantly share code, notes, and snippets.

@MbuguaCaleb
Last active March 18, 2021 10:24
Show Gist options
  • Save MbuguaCaleb/ab848db1b7e4c94e41a94d37b9b4bd3a to your computer and use it in GitHub Desktop.
Save MbuguaCaleb/ab848db1b7e4c94e41a94d37b9b4bd3a to your computer and use it in GitHub Desktop.
A GIST FOR SSH
Private and Public Keys
Gaining access to a remote server
1)It is SSH-Secure Shell Protocol to communicate with other computers .It is similar to Protocals like https,hhtp and ftp)
2)Do just anything in the remote Computer (Make files,,,etc)
3)Traffic is Encrypted while using ssh..Used Mostly in Terminal/Commandline..Can also be used in GUI EG SCP...ALSO WITH FTP CLIENTS
Like filezilla
Client Server Communnication
(1)SSH is the Client
(2)SSHD is the server(Open ssh Deamon)
(3)The server must have sshd installed and running or you will not be able to connect using ssh
Authentication Methods
Password
Public/Private Key Pair
ssh user@IPADDRESS
SSH KEY GEN
PUBLIC AND PRIVATE KEYS
PUBLIC KEY GOES TO THE SERVER LIST OF AUTORIZED KEYS
> cat ~/.ssh/id_rsa.pub | ssh [email protected] "mkdir -p ~/.ssh && chmod 700 ~/.ssh && cat >> ~/.ssh/authorized_keys"
eval `ssh-agent -s`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment