Windows 10 SSH Older Windows SSH Windows 10 SSH SSH Keys The first thing you need to do is generate your SSH keypair. A keypair, as the name implies, consists of 2 parts: the public key and the private key. Public Key Your public key is placed on remote servers so that they can check back with you to see that you are who you say you are. In order to use SSH, you need to: Create an SSH key pair Add your SSH public key to GitLab Creating your SSH key pair. Go to your command line. Follow the instructions to generate your SSH key pair. Adding your SSH public key to GitLab. To add the SSH public key to GitLab, see Adding an SSH key to your GitLab.
I followed this document to setup my SSH authentication https://kgcoe-git.rit.edu/help/ssh/README#generating-a-new-ssh-key-pair
It has worked before but this time on a new setup I get
Permission denied (publickey) error
Below is the debug output from the ssh command
Update: Tried without sudo
Thanks in advance.
Github Generate Ssh Key Windows
Generate Ssh Key For Gitlab On Windows
is running as root and will use
/root/.ssh/config and a private ssh key from that same directory, e.g.
/root/.ssh/id_rsa. In the command:
the shell, probably
bash, will expand
~ to your home directory before it even calls
sudo (prove this with
sudo echo ~), so it will display files from your home directory, probably
/home/ankushko. Meri adhoori mohabbat all episodes cast.
Can I ask why you are running these command with
sudo? Would it work to just connect as a normal user? That would be more secure, but sometimes there is a need to run things as root.
Gitlab Ssh Key Get
Either way, you need to make sure the private ssh key that you are actually using matches the public ssh key on the server.