[root@localhost ssh]# ssh root@192.168.40.251
root@192.168.40.251's password:
Permission denied, please try again.
root@192.168.40.251's password:
Permission denied, please try again.
root@192.168.40.251's password:
Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).
root@192.168.40.251's password:
Permission denied, please try again.
root@192.168.40.251's password:
Permission denied, please try again.
root@192.168.40.251's password:
Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).
0
问题已解决。 是因为没有关闭 selinux
虽然常识,但有时还是我忘记了。 花了好长时间才找到问题。郁闷
]#setenforce 0
test.txt 100% 39 0.0KB/s 00:00
[root@localhost ~]# vi /etc/selinux/config
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - No SELinux policy is loaded.
SELINUX=disabled //改成disabled
# SELINUXTYPE= can take one of these two values:
# targeted - Targeted processes are protected,
# mls - Multi Level Security protection.
SELINUXTYPE=targeted
虽然常识,但有时还是我忘记了。 花了好长时间才找到问题。郁闷
]#setenforce 0
test.txt 100% 39 0.0KB/s 00:00
[root@localhost ~]# vi /etc/selinux/config
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - No SELinux policy is loaded.
SELINUX=disabled //改成disabled
# SELINUXTYPE= can take one of these two values:
# targeted - Targeted processes are protected,
# mls - Multi Level Security protection.
SELINUXTYPE=targeted
编辑回复