Last active
March 18, 2021 10:24
-
-
Save MbuguaCaleb/ab848db1b7e4c94e41a94d37b9b4bd3a to your computer and use it in GitHub Desktop.
A GIST FOR SSH
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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