Last active
December 22, 2019 20:05
-
-
Save linuxoracledev/3826af12e5d31f5fe0a49af13e4435a4 to your computer and use it in GitHub Desktop.
How to Install, Enable Openssh-Server in Ubuntu 18.04 LTS
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
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