小智 5
嗯,rssh 是一个受限制的 shell,提供 sftp 访问但没有 ssh 访问。
sudo apt-get install rssh
sudo chsh -s /usr/bin/rssh $username
Run Code Online (Sandbox Code Playgroud)
你可能不得不
sudo bash -c "echo '/usr/bin/rssh' >> /etc/shells"
Run Code Online (Sandbox Code Playgroud)
使其成为“有效”外壳。
2012 年 9 月 13 日更新 Ubuntu 12.04
文件 /etc/rssh.conf 注释了各种访问权限;因此,对于 sftp,取消注释第 10 行“#allowsftp”。
sudo -e /etc/rssh.conf
Run Code Online (Sandbox Code Playgroud)
改变
#allowsftp
Run Code Online (Sandbox Code Playgroud)
到
allowsftp
Run Code Online (Sandbox Code Playgroud)
节省。
| 归档时间: |
|
| 查看次数: |
3458 次 |
| 最近记录: |