when i try to connect to with username@hostname and not username@ip my command line return a error:
OpenSSH\\ssh.exe: Could not resolve hostname ns335234: H\364te inconnu.
I use this tutorial to do it:
https://www.digitalocean.com/community/tutorials/how-to-set-up-ssh-keys-on-debian-10
I try many things now it is 5 hour on and i don t find the solution if good dev can help me. :)
My version of linux: debian buster 10.
Thank' s by advance for any help.
Have a nice day. ;)
I find a new tutoriel i use visual studio with remote dektop (with that you can see your file on the server debian and edit directly on visual studio code it is amazing !!! :) )Install visual studio code +remote desktop module on the client windows.
------windows client-------
ssh-keygen
add a passs phrase for more security to your private key------Linux Server---------
/home/user/.ssh/authorized_keys
3)Do if you are not root ad sudo before chmod -r 700 /home/<user>/.ssh
4)Do a chmod -r 600 /home/<user>/.ssh/authorized_keys
-----Windows client-----
5)Click on connect to host on VSC add ssh username@ip op hostname
6)In the config file of .ssh you have know Host:alias name HostName:your hostname User:username
add it IdentityFile:Path of you private key
NOW try to connect it work amazing :)