ssh 私匙登录, 文件rswrst权限

skill -KILL -u user1  //注销用户

ssh 免密码登录

http://flysnowxf.iteye.com/blog/1567570 (说是防火墙的问题)

http://flysnowxf.iteye.com/blog/1567570(导入public key)

現在的 ssh 使用同樣的方法會出現錯誤訊息

Agent admitted failure to sign using the key

解決方式 使用 ssh-add 指令将私钥 加进来 (根据个人的密匙命名不同更改 id_rsa)
# ssh-add   ~/.ssh/id_rsa 

http://h2appy.blog.51cto.com/609721/1112797 (./ssh的相关权限)

/home/tom/.ssh目录权限应该是700

/home/tom/.ssh/authorized_keys 应该为644------------这个真的奇怪,有的服务器600也可以.

今天发现某个文件被改成了rswrst----这种权限,用root权限删除时,还提示没权限,怪了,root用户也不能删除了?

chattr -i /home/file1   //原来要先修改属性,去掉 i 

chmod -t /home/file2  //再去掉-t 粘滞位

chmod -s /home/file1 // 再去掉 s 粘滞位

再执行 rm  -f /home/file1  就删掉了

原文地址:https://www.cnblogs.com/flex_fly/p/3707296.html