Heim  >  Artikel  >  Backend-Entwicklung  >  FreeBSD9.0开启SSH远程登录

FreeBSD9.0开启SSH远程登录

WBOY
WBOYOriginal
2016-08-08 09:29:53871Durchsuche

FreeBSD9.0开启SSH远程登录

小狼@http://blog.csdn.net/xiaolangyangyang

一、安装时选择上SSH,或者源码安装SSH
二、使用root登陆系统
三、使用ee编辑器编辑/etc/inetd.conf,去掉ssh前的#
四、编辑/etc/rc.conf,添加一行sshd_enable="YES"
五、编辑/etc/ssh/sshd_config,将
        #PermitRootLogin no改为PermitRootLogin yes  //允许root登陆
        #PasswordAuthentication no改为PasswordAuthentication yes//使用系统PAM认证
        #PermitEmptyPasswords no改为PermitEmptyPasswords no//不允许空密码
保存退出
六、启动SSHD服务,/etc/rc.d/sshd start
七、查看服务是否启动,netstat -an,如果看到22端口有监听,恭喜!!!
八、准备好你的账号和ssh客户端登录吧

以上就介绍了FreeBSD9.0开启SSH远程登录,包括了方面的内容,希望对PHP教程有兴趣的朋友有所帮助。

Stellungnahme:
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn
Vorheriger Artikel:nginx--优化配置示例Nächster Artikel:FreeBSD9.0配置Xorg和Gnome