I cant connect with the SSH Client
ssh -i ~ key.pem ubuntu or root@ipaddress The authenticity of host can't be established. RSA key fingerprint
is fingerprint Are you sure you want to continue connecting (yes/no)?
I am able to connect through Java with the ip address, location of pem and user ubuntu
That is just asking you whether you want to “trust” the computer that you’re connecting to.
It will always show up the first time you SSH to a new server. If you get that in the future and you have connected there before, that’s when you should be worried.