umiddelb / aarch64

Interesting stuff about 64 bit ARM devices (pine64, ODROID-C2)
MIT License
35 stars 9 forks source link

ssh Permission denied #4

Open shally-vn opened 4 years ago

shally-vn commented 4 years ago

I have followed the instructions. When booting the device Centos 7, I have encountered an error /bin/bash Permission denied Please help me overcome this error error log secure Jun 12 16:32:46 localhost sshd[1134]: ssh_selinux_change_context: setcon system_u:system_r:sshd_net_t:s0 from system_u:system_r:kernel_t:s0 failed with Permission denied [preauth] Jun 12 16:32:46 localhost sshd[1134]: Accepted password for root from 192.168.1.123 port 61828 ssh2 Jun 12 16:32:46 localhost sshd[1134]: pam_systemd(sshd:session): Failed to create session: Access denied Jun 12 16:32:46 localhost sshd[1134]: pam_unix(sshd:session): session opened for user root by (uid=0) Jun 12 16:32:46 localhost sshd[1134]: sshd_selinux_copy_context: setcon failed with Permission denied Jun 12 16:32:46 localhost sshd[1139]: sshd_selinux_copy_context: setcon failed with Permission denied Jun 12 16:32:46 localhost sshd[1134]: Received disconnect from 192.168.1.123 port 61828:11: disconnected by user Jun 12 16:32:46 localhost sshd[1134]: Disconnected from 192.168.1.123 port 61828 Jun 12 16:32:46 localhost sshd[1134]: pam_unix(sshd:session): session closed for user root 103125303_254785399123115_607542027303200688_n

umiddelb commented 4 years ago

Hm, I can remember that I have encountered this issue or a similar issue. Unfortunately I cannot remember the solution I've applied.

A simple Google search reveals 1000+ hits. The first search hit might give you a workaround: https://access.redhat.com/solutions/4039781

shally-vn commented 4 years ago

@umiddelb Thank you for the help