Question

Using Ubuntu to connect to Ubuntu Linux Server

Posted March 10, 2020 158 views
Ubuntu 18.04

I had configured SSH login to my Digital Ocean Ubuntu server using SSH keys.

I am able to login using Git bash but when I use Window’s Ubuntu app, I get an authentication error:

Permission denied (publickey).

Log shows:

debug1: Next authentication method: publickey
debug1: Trying private key: /home/jlee/.ssh/id_rsa
debug3: no such identity: /home/jlee/.ssh/id_rsa: No such file or directory
debug1: Trying private key: /home/jlee/.ssh/id_dsa
debug3: no such identity: /home/jlee/.ssh/id_dsa: No such file or directory
debug1: Trying private key: /home/jlee/.ssh/id_ecdsa
debug3: no such identity: /home/jlee/.ssh/id_ecdsa: No such file or directory
debug1: Trying private key: /home/jlee/.ssh/id_ed25519
debug3: no such identity: /home/jlee/.ssh/id_ed25519: No such file or directory
debug2: we did not send a packet, disable method
debug1: No more authentication methods to try.
.ssh/jlee@165.227.201.83: Permission denied (publickey).

la -ls .ssh shows:

known_hosts

but not

authorized_key
authorized_keys

In gitbash,

ls -la .ssh 

shows both:

authorized_keys
authorized_key

I am able to login using SSH keys through Git bash but not with Window’s Ubuntu app.

Any help?

Thank you.

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
2 answers

Hello, @kilmet8

If you’re connecting from a Windows machine you can also use the PuTTY ssh client in order to connect. You can find more information here:

https://www.digitalocean.com/docs/droplets/how-to/connect-with-ssh/putty/

You can check this tutorial on how to setup/generate the SSH keys on Windows 10:

https://ubuntu.com/tutorials/tutorial-ssh-keygen-on-windows#3-key-generation-with-ubuntu

You can upload the id_rsa.pub in the mentioned directory:

C:\Users\%USERNAME%\AppData\Local\Packages\CanonicalGroupLimited.UbuntuonWindows_79rhkp1fndgsc\LocalState\rootfs\

or create a new ssh key and then upload it to your DigitalOcean’s droplet in the ~/.ssh/authorized_keys file

Hope this helps! Let me know how it goes.

Regards,
Alex

The file manager will find any computers on your local area network that advertise their ability to serve files.

Submit an Answer