Openwrt设置开机启动ssh服务.doc设置SSH服务的开机启动目录当前的情况: 1解决过程: 2主要分两步,第一步修改dropbear配置文件: 2第二步:修改root密码 3当前的情况:Openwrt开机后不能用ssh直接连接,需要在页面上配置后才能连上,system->administration->ess其实就是修改下接口为自己需要的接口,修改密码(密码不能为空)保存应用就行了。注:但是没开启ssh,连接时会提示"Loginfailed.”IQIs0认溯1蛊DrcpbearInstanceInttrfacewIm:上〜unspec/redOUstenonlyontheg»v«ninterfaceor,rfunspecAed,onPortg 1VSpodfiMthelisteningportofthisOroptearirwtanMPasswordauthentication-OAllowS5«pM<vwdauthenticationAllowrootloginswithpassword7UAllowtherootusertologinwithpasswordGatewayportsOAllowremotehoststoconnecttolocalSSmforwardedports解决过程:主要分两步,第一步修改dropbear配置文件:开始不知道这个修改是修改了什么配置文件,所以需要从luci页面开始查找。用grep命令查到在/usr/lib/lua/luci/model/cbi/admin_system/,修改的是配置文件/etc/config/(M/etc/config/dropbearM)thenm2=MdpfMropbear0,translate(ess'1)•translate(''Dropbearoffers<abbrtit SecureShellxM>SSH</abbr>s=m2:sectionCT^pedSection,"dropbear^.translate(''DropbearInstance1'))==trueni=s:option((w,Interface^)ttranslate("Listenonlyonthegiveninterfaceor,ifunspecifled, =list" ==true配置之后的#vim/etc/config/dropbearconfigdropbearoptionPasswordAuth1onoptionPort'22'optionInterface'lan'配置之前(默认的),没有配置接口#vim/etc/config/******@OpenUrt:/◎cat/etc/config/dropbearconfigdropbearoptionPassuordAuth1on'optionRootPasswordAuth'onwoptionPort ‘22’口 optionBannerFileVetc/******@OpenUrt:/ttr
Openwrt设置开机启动ssh服务 来自淘豆网m.daumloan.com转载请标明出处.