Reputation: 47
Issue: I am trying to SSH from Mac to Oracle Cloud.
Command I am using: ssh -i <private_key_file> username @ public-ip-address
ssh -iv <private_key_file> username @ public-ip-address
(-) is minus.
Errors I am getting:
cloud userid Clound instance IP address: Permission denied (publickey,gssapi-keyex,gssapi-with-mic)
When I use -iv flag:
SSH could not resolve hostname (it provides my public key): Node name NOR servname provided OR Not Known.
My authority to my public and private keys on my mac is 700. I tried 400 previously, but I keep getting the same error.
Any help would be appreciated. Thank you.
https://docs.oracle.com/en-us/iaas/Content/Compute/Tasks/accessinginstance.htm
Upvotes: 0
Views: 622
Reputation: 848
Double check that your <private_key_file> is only readable by you.
chmod u=r <private_key_file>
Troubleshoot the DNS issue by specifying the IP address instead of the hostname.
Ensure the remote server accepts connections to port 22 from your public IP address. In corporate settings, this is often not the case and you need to access the public internet either via proxy or a VPN.
Upvotes: 1