To get an SSH private key, you typically generate one using a tool like ssh-keygen. Here's how you can do it:
Open a Terminal or Command Prompt: Depending on your operating system, open a terminal or command prompt window.
Run ssh-keygen: Type the following command and press Enter:
ssh-keygen -t ed25519 -C "your_email@example.com"
cat ~/.ssh/id_ed25519.pub
If you are using docker for git process, there is an additional public key inside docker. You should add it not the key in host directory.
clay@593bebf08924:~/userdata$ ssh-keygen -t ed25519 -C "[account]@gmail.com"
Generating public/private ed25519 key pair.
Enter file in which to save the key (/home/clay/.ssh/id_ed25519):
/home/clay/.ssh/id_ed25519 already exists.
Overwrite (y/n)?
clay@593bebf08924:~/userdata$ cat /home/clay/.ssh/id_ed25519
-----BEGIN OPENSSH PRIVATE KEY-----
b3BlbnNzaC1rZXktdjEAAAAABG5vbmUAAAAEbm9uZQAAAAAAAAABAAAAMwAAAAtzc2gtZW[blinded]
-----END OPENSSH PRIVATE KEY-----
clay@593bebf08924:~/userdata$ cat /home/clay/.ssh/id_ed25519.pub
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIE8uQKNiaI[blinded]
clay@593bebf08924:~/userdata$