点滴记忆---观雨亭
openwrt sftp设置
2018-6-6 eehello

参考:https://www.openwrtdl.com/wordpress/ssh%E7%A6%81%E6%AD%A2%E5%AF%86%E7%A0%81%E7%99%BB%E5%BD%95%E5%AF%86%E9%92%A5%E7%99%BB%E5%BD%95


#opkg update

#opkg install openssh-sftp-server

#/etc/init.d/dropbear restart


配置使用密钥登录:

用需要登录的帐号登录进去,

$ssh-keygen -t rsa

会生成公钥和私钥。

把私钥拷贝下来,公钥粘贴至/hone/USER/.ssh/authorized_keys文件中。

cat id_rsa.pub >> authorized_keys


页面配置

“系统”->“管理权”里面把允许密码登录的对勾给去掉。


添加新用户:

#adduser -s /bin/false  xx



发表评论:
昵称

邮件地址 (选填)

个人主页 (选填)

内容