How i can prevent to able to log in with following command without ask it my password (password authentication is enabled).
So it log in with the following command to ssh with ‘dsafg’ (only this user have used) (but only ont the localhost if host change it require passworld)
ssh localhost
‘aswear’
dsafg@DESKTOP-TADVRI2 C:Usersdsafg>
or
ssh dsafg@localhost
same output
or
ssh dsafgh@192.168.2.242 #it is my local private address
same output
it should ask password&public key even if i am on localhost.
please help