Looks like i have founded the solution i needed
please read the steps first before following the steps :
1. In windows cmd prompt : "ssh-keygen" (this will generate id_rsa.pub and id_rsa key for windows **REMEMBER TO PRESS ENTER WHEN ASKES YOU PASSWORD IF YOU WANT TO SSH TO SERVER WITHOUT PASSWORD**)
2. In windows cmd prompt : "scp [location of windows id_rsa.pub] [linux_user]@[linux_IP/linux_hostname]:~/.ssh/authorized_keys" (this will copy windows pub key to linux server, the location of windows id_rsa.pub is shown when you gave the cmd ssh-keygen)
I am trying to get my ssh public key from my windows client to ubuntu host, but I have no idea how to. I tried to find the authorized_keys file, but had zero success. ssh-copy-id command did not work
security.stackexchange.com