Generate pub and private ssh keys for passwordless ssh access

in the linux (for windows users i highly recommend to install WSL2 with shared C and D disk file system among win10 and ubuntu; your existing network firewall ACL of main admin workstation to brocade is enough, WSL will NAT your linux) run below command:
ssh-keygen -t dsa
Generating public/private dsa key pair.
Enter file in which to save the key (/home/moguy/.ssh/id_dsa):
/home/moguy/.ssh/id_dsa already exists.
Overwrite (y/n)? y
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /home/moguy/.ssh/id_dsa.
Your public key has been saved in /home/moguy/.ssh/id_dsa.pub.
The key fingerprint is:
SHA256:NW9kX0RJNKDza22347348734123984794721ppqXegwtY moguy@ws008-101.itforce.local
The key's randomart image is:
+---[DSA 1024]----+
|            .+BX*|
|            . .*=|
|          oo= ..+|
|         . Bo+.. |
|        S   Bo.  |
|         . =.++ .|
|       . .+.B+ + |
|        + EOo.o  |
|       . .+oo.   |
+----[SHA256]-----+

ps1

Be sure before generation of the pub/pri keys that your hostname is in fqdn format and resolvable by your DNS

ps2

if you still get prompt to enter password, then on ubuntu/kali of WSL (on your workstation linux):

sudo nano /etc/ssh/ssh_config
PubkeyAcceptedKeyTypes=+ssh-dss