FreeBSD开启SSH远程登录
2017-11-14 14:00
204 查看
1、安装时选择上SSH,或者源码安装SSH
2、使用root登陆系统
3、使用ee编辑器编辑/etc/inetd.conf,去掉ssh前的#,按ctrl+c,再输入exit保存退出
4、编辑/etc/rc.conf,添加一行sshd_enable="YES"
5、编辑/etc/ssh/sshd_config,将
#PermitRootLogin no改为PermitRootLogin yes //允许root登陆
#PasswordAuthentication no改为PasswordAuthenticationyes//使用系统PAM认证
#PermitEmptyPasswords no改为PermitEmptyPasswords no//不允许空密码
修改端口号:/etc/ssh/sshd_config
#port=22改为 Port=number(你想修改的数字)
保存退出
6、启动SSHD服务,/etc/rc.d/sshd start
7、查看服务是否启动,netstat -an,如果看到22端口有监听,恭喜!!!
来源:http://blog.sina.com.cn/s/blog_8e3a84c60101hybl.html
2、使用root登陆系统
3、使用ee编辑器编辑/etc/inetd.conf,去掉ssh前的#,按ctrl+c,再输入exit保存退出
4、编辑/etc/rc.conf,添加一行sshd_enable="YES"
5、编辑/etc/ssh/sshd_config,将
#PermitRootLogin no改为PermitRootLogin yes //允许root登陆
#PasswordAuthentication no改为PasswordAuthenticationyes//使用系统PAM认证
#PermitEmptyPasswords no改为PermitEmptyPasswords no//不允许空密码
修改端口号:/etc/ssh/sshd_config
#port=22改为 Port=number(你想修改的数字)
保存退出
6、启动SSHD服务,/etc/rc.d/sshd start
7、查看服务是否启动,netstat -an,如果看到22端口有监听,恭喜!!!
来源:http://blog.sina.com.cn/s/blog_8e3a84c60101hybl.html
相关文章推荐
- FreeBSD下开启ftp
- FreeBSD下开启sshd服务和root远程登录
- FreeBSD下开启SSH
- FreeBSD配置ip和开启SSH
- freebsd开启ssh
- FreeBSD下开启telnet
- freebsd开启ftp服务
- FreeBSD开启SSH远程登录
- freeBSD 7.2开启远程桌面
- FreeBSD下如何开启SSH
- FreeBSD配置防火墙开启SSH服务
- freebsd开启root远程登陆
- FreeBSD 开启 root 的 ssh 登陆 及命令
- FreeBSD配置ip和开启SSH
- freebsd开启root远程登录服务器的操作
- FreeBSD9.0开启SSH远程登录
- FreeBSD开启ROOT远程SSH登陆
- freebsd镜像作用和vmware服务开启
- FreeBSD 开启apache 提示 failed to enable the httpready accept filter
- FreeBSD 开启POLLING