test@2023:~$ ssh [email protected]
The authenticity of host '10.42.0.201 (10.42.0.201)' can't be established.
ECDSA key fingerprint is SHA256:0TSeay4Ywqc69Inkfk0i/t5lJ8sXKSD/lLM2PuN5/d4.
Are you sure you want to continue connecting (yes/no/[fingerprint])?
yes
Failed to add the host to the list of known hosts (/home/test/.ssh/known_hosts).
[email protected]'s password:
/bin/sh: Permission denied
Connection to 10.42.0.201 closed.
Why is getting permission denied error even after successful authentication?
you can try by changing the SELinux mode to permissive. It resolves your problem.
— #DEFAULT_ENFORCING = “enforcing”
++ DEFAULT_ENFORCING = “permissive”