I have an Amazon ec2 instance running, and I have a non-root user set up that I use to ssh.
I have both the private key and certificate stored on my ~. This is the command that I’m using to try and log in, but it prompts me for a password (which I don’t know/have).
$ sudo ssh -i mykey.pem root@ec2-amazoninstance.com
root@ec2-amazoninstance.com's password:
Permission denied, please try again.
How do I log into root not knowing this password?
On linux, once logged in as a user you use the command
suto become root.To directly login into the root account you need to make sure
On a linux machine you would then run
ssh root@ipto login as root onip.