Reputation: 346
I have an ubuntu ec2-instance. I have 2 users for this instance. One is the default ubuntu
user and the other is newuser
that I created.
I am logged in to my bastion host and trying to copy a file from bastion host to other instance for newuser
but I am getting Permission denied (publickey).
error.
scp hello.txt [email protected]:/home/ubuntu
works fine.
But
scp hello.txt [email protected]:/home/newuser
gives the aforementioned error.
Any help will be greatly appreciated.
Upvotes: 0
Views: 108