ubuntu Lucid(10.04) 增加一个只能sftp登陆的账户

2011-12-12 阅读 173

ubuntu Lucid(10.04) 增加一个只能sftp登陆的账户

<pre class="brush:bash;">    useradd -c "" -s /usr/lib/openssh/sftp-server -d /ftp/ -G gid user_sftp
```
<p>
	设置、修改密码:</p>
<pre class="brush:bash;" style="background-color: rgb(240, 240, 240); border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: dotted; border-right-style: dotted; border-bottom-style: dotted; border-left-style: dotted; border-top-color: rgb(170, 170, 170); border-right-color: rgb(170, 170, 170); border-bottom-color: rgb(170, 170, 170); border-left-color: rgb(170, 170, 170); margin-top: 10px; margin-right: 10px; margin-bottom: 10px; margin-left: 10px; padding-top: 10px; padding-right: 10px; padding-bottom: 10px; padding-left: 10px; ">    passwd user_sftp
```

ubuntu Lucid(10.04) 增加 只能 sftp 登陆 账户

更新于 2023年03月28日