如何解决ssh登录时提示“不允许操作”的问题?

如何解决ssh登录时提示“不允许操作”的问题?

我以前工作正常的 ssh 登录现在会导致“不允许操作”错误接受连接。除了重新启动服务器之外,我想不出我改变了什么,那么可能出了什么问题呢?

这是相关日志:

debug1: Authentication succeeded (publickey).
debug1: channel 0: new [client-session]
debug1: Entering interactive session.
debug1: client_input_channel_req: channel 0 rtype exit-status reply 0
Operation not permitted
debug1: channel 0: free: client-session, nchannels 1
Connection to horst closed.

答案1

Jari Laamanen 暗示,解决办法在于这个 buffalo.nas-central.org 线程:

我已添加root到一个新组,该组恰好被文件中的 ssh 访问阻止/etc/sftponly。正如该线程中所指出的,只有nas_configgen -c sftp在 中注释掉该行时,更改此文件才是永久性的/etc/init.d/sshd.sh

答案2

将 sshd-keygen-wrapper 添加到:系统设置;安全与隐私 -> 隐私 -> 全磁盘访问

相关内容