Skip to content

Instantly share code, notes, and snippets.

@linuxoracledev
Last active December 22, 2019 20:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save linuxoracledev/3826af12e5d31f5fe0a49af13e4435a4 to your computer and use it in GitHub Desktop.
Save linuxoracledev/3826af12e5d31f5fe0a49af13e4435a4 to your computer and use it in GitHub Desktop.
How to Install, Enable Openssh-Server in Ubuntu 18.04 LTS
sudo apt-get install openssh-server
sudo service ssh status
sudo nano /etc/ssh/sshd_config
sudo service ssh restart
sudo service ssh status
#To see if existing SSH keys are present
ls -al ~/.ssh
#Generate a new SSH key
ssh-keygen -t rsa -b 4096 -C "your_git_email@example.com"
#To add ssh key to ssh-agent start the ssh-agent in the background.
eval "$(ssh-agent -s)"
cd /home/azad/.ssh
azad@cli:~/.ssh$ cat id_rsa.pub
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment