I have a local workstation Running Windows called myDesktop where I'm logged on with user name 'windowsLogin', and a Linux target server called myLinux, where I must ssh-log with user 'linuxLogin'.
From MobaXterm running on the Windows machine, I can generate a key and copy it to myLinux:
local$ /bin/ssh-keygen local$ cat .ssh/id_rsa.pub |ssh myLinux 'cat >> .ssh/authorized_keys' local$ ssh myLinux <========= OK fine it worked !
id_rsa.pub contains now a line ending up with "windowsLogin@MYDESKTOP".
How do I achieve the same with putty as that stills asks me for a password, i.e. password of user specified in putty saved session under Connection -> Data in field 'Auto-login username' (which is different from my OS desktop 'windowsLogin')...
I already tried:
- replacing the auto-login user name with my linuxLogin
- to click 'Use system username (Seb FamilyName)' by leaving the field 'Auto-login username' empty...
- copying the public key generated by puttygen on myLInux in .ssh/authrorized_keys (string ending up with "rsa-key-20180111")
And none of those work...
Is it possible to get putty working with an ssh key to avoid typing a password?