How do I login to Digital Ocean Server using Private Key on Terminal - Ubuntu, PC?


#1

Hello,

I am ultra noob in Linux. My server requires SSH key for login which I have saved on my PC.

I do not want to use Putty because its tiny font.

My Question: How can I use SSH key in Terminal for login to Digital Ocean server? Ref: screenshot

Thanks & Regards,
Gulshan


#2

You’ll have to add a variable to your ssh command e.g.:

ssh root@<IP Address> -i /location/to/privkey

Here, -i stands for identity.