I am attempting to transfer a tarball from my Oracle Cloud VM to my local machine, when I try it says:
remote_username@ip_address: Permission denied(publickey)
Since I guessed this was my publickey refusing to allow this due to an issue with permissions I located the authorised_keys file in my VM on the assumption this would hold my public key but when I try to change the permissions it says:
chmod: cannot access '/home/remote_username/.ssh/authorised_keys': No such file or directory
it appears to think the file I am trying to change permissions for does not exist despite the fact that the file clearly exists, the VM for whatever reason does not recognize it's existence and I'm not sure how to get it to realize there is in-fact a file there that can have it's permissions altered so that I can actually transfer files from my VM to my local machine.
authorized_keys
file is in/home/<username>/.ssh/
. Why is this not the case on your system? I don't understand head or tail of your question. – vidarlo Feb 20 '23 at 20:56chmod: cannot access '/home/remote_username/.ssh/authorised_keys': No such file or directory
despite the file clearly being right there, it doesn't seem to recognize the existence of this file and I don't know why
– oraclewoes Feb 20 '23 at 21:02authorized_keys
orauthorised_keys
? You have spelled it 2 different ways in your comment – steeldriver Feb 20 '23 at 21:09remote_username@ip_address: Permission denied(publickey)
– oraclewoes Feb 20 '23 at 21:14Permission denied(publickey)
is not a file permission problem. It's usually an ssh configuration problem. It means your login is refused because your client system presented the wrong key. – user535733 Feb 20 '23 at 21:21