位置: 编程技术 - 正文

FreeBSD系统SSH配置详解(freebsd怎么用)

编辑:rootadmin

推荐整理分享FreeBSD系统SSH配置详解(freebsd怎么用),希望有所帮助,仅作参考,欢迎阅读内容。

文章相关热门搜索词:freebsd ssh配置,freebsd怎么样,freebsd使用,freebsd 配置ip,freebsd 配置ip,freebsd ssh配置,freebsd使用手册,freebsd常用命令,内容如对您有帮助,希望把文章链接给更多的朋友!

修改freebsd可以用sshd权限用户登录ssh 但不能用root用户登录的方法

在/etc/ssh/sshd_config最后中加入

FreeBSD系统SSH配置详解(freebsd怎么用)

PermitRootLogin yes #允许root登录PermitEmptyPasswords no #不允许空密码登录PasswordAuthentication yes # 设置是否使用口令验证。就可以了

FreeBSD SSH配置详解

首先vi编辑/etc/inetd.conf,去掉ssh前的#,保存退出 (开启****ssh服务)编辑/etc/rc.conf最后加入:sshd_enable="yes"即可 激活sshd服务:techo#/etc/rc.d/sshd start用下面命令检查服务是否启动,在端口应该有****。#netstat -an ## check port number 最后vi /etc/ssh/sshd_config, 下面是我的配置文件:(/etc/ssh/sshd_config)##################################################### $OpenBSD: sshd_config,v 1. // :: markus Exp $# $FreeBSD: src/crypto/openssh/sshd_config,v 1..2.1 // :: des Exp $# This is the sshd server system-wide configuration file. See# sshd_config(5) for more information.# This sshd was compiled with PATH=/usr/bin:/bin:/usr/sbin:/sbin# The strategy used for options in the default sshd_config shipped with# OpenSSH is to specify options with their default value where# possible, but leave them commented. Uncommented options change a# default value.# Note that some of FreeBSD's defaults differ from OpenBSD's, and# FreeBSD has a few additional options.#VersionAddendum FreeBSD-#Port #Protocol 2#AddressFamily any#ListenAddress .1..#ListenAddress ::# HostKey for protocol version 1#HostKey /etc/ssh/ssh_host_key# HostKeys for protocol version 2#HostKey /etc/ssh/ssh_host_dsa_key# Lifetime and size of ephemeral version 1 server key#KeyRegenerationInterval 1h#ServerKeyBits # Logging# obsoletes QuietMode and FascistLogging#SyslogFacility AUTH#LogLevel INFO# Authentication:#LoginGraceTime 2m#PermitRootLogin no#StrictModes yes#MaxAuthTries 6#RSAAuthentication yes#PubkeyAuthentication yes#AuthorizedKey .ssh/authorized_keys# For this to work you will also need host keys in /etc/ssh/ssh_known_hosts#RhostsRSAAuthentication no# similar for protocol version 2#HostbasedAuthentication no# Change to yes if you don't trust ~/.ssh/known_hosts for# RhostsRSAAuthentication and HostbasedAuthentication#IgnoreUserKnownHosts no# Don't read the user's ~/.rhosts and ~/.shosts files#IgnoreRhosts yes# Change to yes to enable built-in password authentication.PasswordAuthentication yes#PermitEmptyPasswords no# Change to no to disable PAM authentication#ChallengeResponseAuthentication yes# Kerberos options#KerberosAuthentication no#KerberosOrLocalPasswd yes#KerberosTicketCleanup yes#KerberosGetAFSToken no# GSSAPI options#GSSAPIAuthentication no#GSSAPICleanupCredentials yes# Set this to 'no' to disable PAM authentication, account processing,# and session processing. If this is enabled, PAM authentication will# be allowed through the ChallengeResponseAuthentication mechanism.# Depending on your PAM configuration, this may bypass the setting of# PasswordAuthentication, PermitEmptyPasswords, and# "PermitRootLogin without-password". If you just want the PAM account and# session checks to run without PAM authentication, then enable this but set# ChallengeResponseAuthentication=no#UsePAM yes#AllowTcpForwarding yes#GatewayPorts no#XForwarding yes#XDisplayOffset #XUseLocalhost yes#PrintMotd yes#PrintLastLog yes#TCPKeepAlive yes#UseLogin no#UsePrivilegeSeparation yes#PermitUserEnvironment no#Compression delayed#ClientAliveInterval 0#ClientAliveCountMax 3#UseDNS no#PidFile /var/run/sshd.pid#MaxStartups # no default banner path#Banner /some/path# override default of no subsystemsSubsystem sftp /usr/libexec/sftp-serverIgnoreRhosts yesIgnoreUserKnownHosts yesPrintMotd yesStrictModes noRSAAuthentication yesPermitRootLogin yes #允许root登录PermitEmptyPasswords no #不允许空密码登录PasswordAuthentication yes # 设置是否使用口令验证。##############################################记得修改完配置文件后,重新启动sshd服务器(/etc/rc.d/sshd restart)即可。 几点补充说明1,如果重启后还是不行请重新载入sshd_config 文件/etc/rc.d/sshd reload2,如果出现using keyboard-interactive authenticationpassword:请确认PasswordAuthentication是否已经改成yes另外如果客户端是putty那么请确认"尝试'智能键盘'认证(SSH-2)"的勾是否有去掉3,如果是使用root帐号登陆请确认密码是否为空空密码无法登陆4请确认是否有安装SSHsysinstall>>>configure>>>networking>>>sshd是否的勾是否有打上

FreeBSD 6.2用freebsd-update升级过程 FreeBSD6.2-RELEASE下用freebsd-update升级过程:mail#uname-aFreeBSDmail.extmail.org6.2-RELEASEFreeBSD6.2-RELEASE#0:FriNov::UTCqiao@qiao.lpzq:/usr/src/sys/i/compile/kernel_IPFWimail

FreeBSD双线负载均衡NAT服务器配置方法 #vi/etc/rc.conf================+==============+=================defaultrouter=...ifconfig_fxp0=inet..0.1netmask...0ifconfig_rl0=inet...2netmask...0ifconfig_rl1

FreeBSD系统下读写 NTFS分区 1、安装ntfs-3g:#cd/usr/ports/sysutils/fusefs-ntfs#makeinstallclean2、加入fuse加载:#ee/etc/rc.conf加入以下这一行:fusefs_enable=YES保存退出#ee/boot/loader.conf加入以下这一

标签: freebsd怎么用

本文链接地址:https://www.jiuchutong.com/biancheng/353950.html 转载请保留说明!

上一篇:用OpenBSD 3.8 release自带的FTPD架设FTP服务器

下一篇:FreeBSD 6.2用freebsd-update升级过程

  • 一般纳税人收到普票如何入账
  • 进项税额转出的情况
  • 利息收入纳税义务时点
  • 开发票价格能否比实际金额高
  • 本年利润呈亏损要不要上企业所得税?
  • 母子公司合并报表的条件
  • 京东开专用发票需要用公户付款吗
  • 哪些单位属于政府工作部门系列
  • 汇算清缴退款怎么入账
  • 企业其他综合收益减少应该怎么处理
  • 下岗职工可以享受低保吗
  • 发出材料汇总表金额怎么算
  • 退休工资缴纳个人所得税税率表
  • 企业出现经营异常
  • 小规模纳税人附加税优惠政策2023
  • 定额发票使用年限规定
  • 一般纳税人为其他公司制作标书怎么缴税?
  • 账务中如何把短期借款转变为实收资本?
  • 旅游门票报销怎么算
  • 理财认购申购
  • win7无法使用管理员权限
  • 电脑上不了网怎么安装网卡驱动
  • 发工资扣的个人社保计入哪个科目
  • 安卓手机数据迁移到红米手机
  • php与mysql基础教程
  • tracert命令的作用及用法
  • php字符串定义
  • scvc8.exe是什么
  • 雨林木风u盘pe装系统教程
  • 酒店里用了收费的东西怎么算
  • 间接人工费用预算工时分配率将提高10%
  • 货款退回账务处理方法
  • ant desgin-vue
  • deepwiser怎么用
  • 前端播放视频的插件
  • php用户登录界面代码
  • 怎么编制资金平衡表格
  • 自注意力机制是什么
  • 汇兑损益计算器
  • 高校教材编写
  • 帝国cms怎么用
  • 财务f/p是什么意思的缩写
  • python中的列表和元祖有什么区别
  • 阴影等级是什么
  • 发票开错对方已抵扣该怎么处理?
  • sql server 查看
  • 企业会计人员审计程序
  • 以前年度损益的科目代码
  • 商场活动经费预算
  • 开红字发票如何调整收入?
  • 国有资产无偿划转协议
  • 简易征收怎么申报
  • 人力资源公司劳务费发票税率
  • 党费结余如何计算
  • 雇主责任险为什么理赔很慢
  • 计提本月工资社保怎么扣
  • 付转让费计入什么科目
  • 普通发票采购分录
  • sql 修改表的字段名称
  • centos7添加ip地址
  • win7麦克风没声音怎么设置方法从计算机
  • win10周年更新版是什么意思
  • Win10 Mobile RS2预览版14904升级截图曝光
  • 如何去掉windows不是正版
  • Win10 Mobile 10586.306提前上手视频评测
  • win7账户不见了
  • win10系统怎么更改开机密码
  • 在win7上加装一个硬盘不显示
  • js设计模式有什么用
  • perl编程
  • vue-cli lib
  • 如何使用form表单
  • js代码怎么使用
  • 技术总结2000字
  • 消费税申报详细流程图
  • 成都市水源地及饮用水的水质情况
  • 个体户 零申报
  • 如何下载电子国税app
  • 重庆税务电子发票登录
  • 如何开展班级全部活动
  • 免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

    鄂ICP备2023003026号

    网站地图: 企业信息 工商信息 财税知识 网络常识 编程技术

    友情链接: 武汉网站建设