

gedit ~/.ssh/id_ed25519.pub will open the public key in gedit.We can cat the public key then copy it or open the public key in a text editor and then copy it. We can now add the ssh public key to Github.

ssh-add ~/.ssh/id_ed25519 then enter the passphrase used initially to add key to client.Start the ssh-agent in the background to add add key to ssh-client: eval "$(ssh-agent -s)".Enter and hit enter for the passphrase and reenter the passphrase and hit enter again.Generate ssh key, ssh-keygen -t ed25519 -C Hit enter to use the default settings for the file name/path to save your key.sudo systemctl disable -now ssh to disable ssh and sudo systemctl enable -now ssh to enable ssh.This enables us to connect to our Ubuntu system via SSH from any remote machine. sudo ufw allow ssh, for the firewall to allow ssh connection.sudo systemctl status ssh to check the ssh status then hit q to get back to the terminal.
#Git add remote origin ssh install#
Update and install openssh-server: sudo apt update then sudo apt install openssh-server.I am on Ubuntu so I will install ssh on Ubuntu.For the sake of testing, let's create a dummy repository on GitHub.It is located in the root of the user directory. It is a hidden file to either you check show hidden files. then you can do set up the token in a different way.
#Git add remote origin ssh password#
If you get an error message saying something like, Support for password authentication was removed.

For sometime GitHub will accept Basic authentication, the use of username and password, to access repositories on GitHub - to clone, push and pull. Basic authentication is the use of username and password for authentication.
